a=input() print("?") print(a+a) while True: s=input() if s=="!": input() break s0,s1=s.split() if s1=="WIN": break a,b=s1 print("?") print(b+a)