N = int(input()) p = [0] * N S = N * (N + 1) // 2 for i in range(1, N - 1): print('?', i + 1, N, flush = True) C = int(input()) p[i - 1] = S - C S = C print('?', 1, N - 1, flush = True) p[N - 1] = N * (N + 1) // 2 - int(input()) p[N - 2] = N * (N + 1) // 2 - sum(p) print('!', *p)