import sys from sys import stdin N = int(stdin.readline()) """ ans = -1 for loop in range(1,N+1): print ("? " + str(loop) , flush=True ) cat = int(stdin.readline()) ans = max( ans , cat ) assert loop <= 600 or cat == -1 """ for i in range(1,N+1): print ("!",i)