from sys import stdin def output(*values): print(*values, flush=True) def main(): alpha = stdin.readline().rstrip() abc = set('abcdefghijklmnopqrstuvwxyz') # print(abc) first = True tail = '' while True: if first: out = alpha + alpha abc.remove(alpha) first = False else: out = tail + alpha output('?', out) judge_input = stdin.readline().rstrip() if judge_input == '! LOSE' or judge_input == '! WIN': return tail = judge_input[-1] if __name__ == "__main__": main()