n = int(input()) s = 0 a = [0] * n b = [0] * (n - 1) for i in range(n - 1): print('?', i + 1, i + 2) b[i] = int(input()) for i in range(1, n + 1): a[0] = i for j in range(n - 1): a[j + 1] = b[j] - a[j] if a[j + 1] <= 0 or a[j + 1] > n: break else: if len(set(a)) == n: print('!', *a)