import math print("?",math.lcm(*list(range(1,int(input())+1)))) print("!",input())