first = None while(True): a = input() if(first == None):first = a if(a[0] == "!"):break print("?",a[-1]+first)