alpha = input() pre = alpha while True: print('?', pre + alpha, flush=True) cmd, T = input().split() if cmd == '?': pre = T[1] if cmd == '!': exit()