#include <bits/stdc++.h>
using namespace std;
int main() {
  int masyvas[6] = {4, 8, 15, 16, 23, 42};
  int ats[7];
  int x, y, z;
  cout << "? 1 2" << endl;
  cin >> x;
  cout << "? 3 4" << endl;
  cin >> y;
  cout << "? 2 3" << endl;
  cin >> z;
  if ((x * 2 != z) && (x != z * 2)) {
    for (int i = 0; i < 6; i++) {
      for (int j = 0; j < 6; j++) {
        if ((x * masyvas[j] == z * masyvas[i]) && (i != j)) {
          ats[1] = masyvas[i];
          ats[3] = masyvas[j];
          ats[2] = x / ats[1];
          ats[4] = y / ats[3];
          break;
        }
      }
    }
  } else {
    for (int i = 0; i < 6; i++) {
      for (int j = 0; j < 6; j++) {
        if ((z * masyvas[j] == y * masyvas[i]) && (i != j)) {
          ats[2] = masyvas[i];
          ats[4] = masyvas[j];
          ats[1] = x / ats[2];
          ats[3] = y / ats[4];
          break;
        }
      }
    }
  }
  cout << "? 5 5" << endl;
  int pen;
  cin >> pen;
  ats[5] = sqrt(pen);
  for (int i = 0; i < 6; i++) {
    for (int j = 1; j < 6; j++) {
      if (masyvas[i] == ats[j]) break;
      if (j == 5) ats[6] = masyvas[i];
    }
  }
  cout << "! ";
  for (int i = 1; i <= 6; i++) cout << ats[i] << " ";
  cout << endl;
  return 0;
}
