def main(): N = int(input()) P = [0] * N for i in range(N-1): print('?', i+1, i+2) S = int(input()) P[i+1] = S for i in range(1, N+1): ans = [0] * N ans[0] = i juge = True for j in range(1, N): p = P[j] - ans[j-1] ans[j] = p if p <= 0 and p > N: juge = False break if len(set(ans)) == N and juge: print('!', *ans) exit() if __name__ == '__main__': main()