D = int(input()) print("?",0,flush = True) f0 = int(input()) print("?",1,flush = True) f1 = int(input()) print("!", f1-f0, flush = True)