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