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