import math N=int(input()) print("?",math.factorial(N)) print("!",input())