#include <bits/stdc++.h>
using namespace std;
const int mod = (int)1e9 + 7;
const int oo = (int)1e9;
int v[6] = {4, 8, 15, 16, 23, 42};
int ans[7];
int get(int i, int j) {
  cout << "? " << i << " " << j << endl;
  cout.flush();
  int ans;
  cin >> ans;
  return ans;
}
int main() {
  int r12 = get(1, 2);
  int r23 = get(2, 3);
  int r34 = get(3, 4);
  int c[3] = {5, 7, 23};
  int val[3] = {15, 42, 23};
  for (int i = 0; i < 3; i++) {
    if (r12 % c[i] == 0 || r23 % c[i] == 0 || r34 % c[i] == 0) {
      if (r12 % c[i] == 0 && r23 % c[i] != 0) {
        ans[1] = val[i];
        ans[2] = r12 / ans[1];
        ans[3] = r23 / ans[2];
        ans[4] = r34 / ans[3];
      } else if (r12 % c[i] == 0 && r23 % c[i] == 0) {
        ans[2] = val[i];
        ans[1] = r12 / ans[2];
        ans[3] = r23 / ans[2];
        ans[4] = r34 / ans[3];
      } else if (r23 % c[i] == 0 && r34 % c[i] == 0) {
        ans[3] = val[i];
        ans[4] = r34 / ans[3];
        ans[2] = r23 / ans[3];
        ans[1] = r12 / ans[2];
      } else {
        ans[4] = val[i];
        ans[3] = r34 / ans[4];
        ans[2] = r23 / ans[3];
        ans[1] = r12 / ans[2];
      }
      break;
    }
  }
  set<int> ex;
  ans[5] = sqrt(get(5, 5));
  for (int i = 1; i < 6; i++) ex.insert(ans[i]);
  for (int i = 0; i < 6; i++) {
    int cur = v[i];
    if (ex.find(cur) == ex.end()) {
      ans[6] = cur;
      break;
    }
  }
  cout << "!";
  for (int i = 1; i <= 6; i++) cout << " " << ans[i];
  cout << endl;
  return 0;
}
