num=int(input())
command=[input().split() for i in range(num)]
dic={}

for i in command:
    if i[0]=="insert":
        dic[i[1]]=1
    if i[0]=="find":
        if i[1] in dic:
            print("yes")
        else:
            print("no") num=int(input()) num int(input()) int input() input input().split() for i in range(num) for i in range(num) i range(num) range num for i in range(num) input().split() ().split () input split command=[input().split() for i in range(num)] command [input().split() for i in range(num)] dic={} dic {} for i in command:
    if i[0]=="insert":
        dic[i[1]]=1
    if i[0]=="find":
        if i[1] in dic:
            print("yes")
        else:
            print("no") i command if i[0]=="insert":
        dic[i[1]]=1
     i[0]=="insert" i[0] i 0 "insert" dic[i[1]]=1 dic[i[1]] dic i[1] i 1 1 if i[0]=="find":
        if i[1] in dic:
            print("yes")
        else:
            print("no") i[0]=="find" i[0] i 0 "find" if i[1] in dic:
            print("yes")
        else:
            print("no") i[1] in dic i[1] i 1 dic print("yes") print "yes" print("no") print "no" dic={} {} dic num=int(input()) int(input()) num command=[input().split() for i in range(num)] [input().split() for i in range(num)] command
num=int(input())
command=[input().split() for i in range(num)]
dic={}

for i in command:
    if i[0]=="insert":
        dic[i[1]]=1
    if i[0]=="find":
        if i[1] in dic:
            print("yes")
        else:
            print("no")
