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