We all know that elephants have incredible memory, as each one has a name and a lucky number.
elfnt can remember up to $n$ friends, storing them in his memory list.
There are $q$ queries, each belonging to one of the following types:
ASK name
: Check if elfnt remembers an elephant with the given name
.
"Who?"
.ADD name num
: Introduce a new elephant with name
and lucky number num
.
It is guaranteed that NO same name will be added more than once using the ADD operation.
The first line contains two integers $n$ and $q$, representing the size of the memory list and the query times.
The following $q$ lines, each contains a type of operation. The format are as follow.
ADD name num
ASK name
name
$| \leq 100$num
$\leq 10^9$name
only contains lowercase letters.ASK
queries.For each ASK
query:
name
is found in memory."Who?"
.Each output should be followed by a newline.