def main(): n = int(input()) tot = n * (n + 1) // 2 ans = [] for i in range(n - 1, 1, -1): print(f"? {i} {n}") s = int(input()) ans.append(tot - s) tot -= tot - s print("! ", end="") print(*ans[::-1]) return if __name__ == "__main__": main()