st=input() s=st S=set(list("qwertyuiopasdfghjklzxcvbnm")) while 1: for e in S: ans=s[-1]+st break S-={e} print("?",ans,flush=1) f,s=map(str,input().split()) if f=="!": exit()