def main(): n = int(input()) tot = n * (n + 1) // 2 ans = [] # a[1]~a[n-2]を決める for i in range(1, n - 1): print(f"? {i + 1} {n}") s = int(input()) ai = tot - s ans.append(ai) tot -= ai # a[n-1]とa[n]を決める print(f"? {1} {n - 1}") s = int(input()) an = n * (n + 1) // 2 - s ans.append(tot - an) ans.append(an) print("!", *ans) return if __name__ == "__main__": main()