a = input() print("?",a+"a",flush=True) while True: f,t = input().split() if f=="!": exit() S = t[1]+"a" print("?",S,flush=True)