#include <bits/stdc++.h>
using namespace std;
long long inf = 1e18 + 42;
const double eps = 1e-8;
const int M = 1e9 + 7;
const int MN = 1e9;
int main() {
  vector<int> In;
  for (int i = 1; i <= 4; i++) {
    cout << "? " << i << ' ' << i + 1 << endl;
    int x;
    cin >> x;
    In.push_back(x);
  }
  vector<int> v = {4, 8, 15, 16, 23, 42};
  do {
    vector<int> res;
    for (int i = 1; i <= 4; i++) {
      res.push_back(v[i - 1] * v[i]);
    }
    if (res == In) {
      cout << "! ";
      for (int x : v) cout << x << ' ';
      cout << endl;
      return 0;
    }
  } while (next_permutation(v.begin(), v.end()));
  return 0;
}
