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 p[N - 1] = N * (N + 1) // 2 - sum(p) print('!', *p)