N = int(input()) S = [] for i in range(2,N+1): print(f"? {1} {i}") S.append(int(input())) X = [0,S[0]] for i in range(1,N-1): X.append(S[i]-S[i-1]) K = 0 while 1<0: cnt += T[j] j -= j&(-j) return cnt for i in range(1,N+1): bit_sum(i,1) P = [] while X: x = X.pop() tot = T[N]-x high = N low = 0 while high-low>1: mid = (high+low)//2 if bit_cum(mid)>=tot: high = mid else: low = mid P.append(high) bit_sum(high,-1) P = P[::-1] print("!",*P)