c = input() print('?', c + c) while True: op, s = input().split() if op == '!': break print('?', s[1] + c)