The first line contains an integer $n$ ($1 \leq n \leq 10^{4}$) --- the number of olympiad participants.

Each of the following $n$ lines contains information about the olympiad participants:
\begin{itemize}
\item $id$ --- unique participant number ($10^6 \leq id < 10^7$);
\item $gender$  --- participant's gender (\texttt{male} --- male, \texttt{female} --- female);
\item $grade$ --- participant's grade level ($1 \leq grade \leq 11$);
\item $age$ --- participant's age ($10 \leq age \leq 20$);
\item $score$ --- the number of points participants have from all selection rounds ($0 \leq score \leq 10^8$).
\end{itemize}

It is guaranteed that all $id$ and $score$ of participants are different.

The next line contains an integer $m$ ($1 \leq m \leq 7$) --- the number of international olympiads for which Miss M wants to know the composition of the participant teams.

The following $m$ lines contain the names of the international olympiads for which the composition of the participant teams needs to be output. Possible olympiads: \texttt{IOI}, \texttt{CEOI}, \texttt{EGOI}, \texttt{EJOI}, \texttt{BaltOI}, \texttt{BalkOI}, \texttt{JBOI}. It is guaranteed that all olympiads are different.