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