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