Your task is to write a program of a simple dictionary which implements the following instructions:
In the first line n, the number of instructions is given. In the following n lines, n instructions are given in the above mentioned format.
Print yes or no for each find instruction in a line.
5 insert A insert T insert C find G find A
no yes
13 insert AAA insert AAC insert AGA insert AGG insert TTT find AAA find CCC find CCC insert CCC find CCC insert T find TTT find T
yes no no yes yes yes