import sys A = input() alf = [chr(ord("a")+i) for i in range(26)] T = A+A while True: print("?",T[1]+A) x,T = input().split() if x == "!": sys.exit()