a = input() chrs = {chr(i) for i in range(97,123)} chrs.remove(a) while (S := input())[0] != "!": S = int(S[2:]) chrs.remove(S[1]) tmp = chrs.pop() print(f"? {S[1]+tmp}")