A problem is called "WellKnown" if a similar problem has already been proposed. Dadas, who is proposing problems for the Lemon Cup, wants to avoid proposing WellKnown problems. So he set the following criteria.
There are countless algorithms in the world, but Dadas only knows algorithms. Therefore, the problems proposed by Dadas only involve these algorithms.
problems proposed by Dadas are given in the order they were proposed. For each problem, compare it with previously proposed problems, and print WellKnown if it is WellKnown, and AdHoc otherwise. Note that there may exist problems that do not use any algorithms at all.
The input is given in the following format.
Print lines.
On the -th line, print whether -th problem is WellKnown or AdHoc.
The value is defined as follows.
, a binary string of length represents the information of the -th problem. The interpretation of the string changes depending on the value of .