d = [-1]*(110) for i in range(2): print("? {}".format(i)) n = int(input()) print("! {} {}".format(1,2))