N = int(input()) now = N * (N + 1) / 2 ans = [] for i in range(N - 1,1,-1): l = 1 r = i print("?",l,r) S = int(input()) t = now - S ans.append(int(t)) now -= t print("?",2,N) S = int(input()) one = N * (N + 1) // 2 - S ans.append(int(now - one)) ans.append(one) print("!",*reversed(ans))