#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  map<int, pair<int, int> > mult;
  vector<int> arr = {4, 8, 15, 16, 23, 42}, ans(6);
  for (int i = 0; i < arr.size(); i++)
    for (int j = i + 1; j < arr.size(); j++)
      mult[arr[i] * arr[j]] = {arr[i], arr[j]};
  int a, b, c, d;
  cout << "? 1 2" << endl;
  cin >> a;
  cout << "? 2 3" << endl;
  cin >> b;
  vector<int> values = {mult[a].first, mult[a].second, mult[b].first,
                        mult[b].second};
  for (int i = 0; i < values.size(); i++) {
    int value = -1;
    for (int j = i + 1; j < values.size(); j++) {
      if (values[j] == values[i]) {
        value = values[i];
        break;
      }
    }
    if (value != -1) {
      ans[1] = value;
      if (values[0] != value)
        ans[0] = values[0];
      else
        ans[0] = values[1];
      if (values[2] != value)
        ans[2] = values[2];
      else
        ans[2] = values[3];
      break;
    }
  }
  cout << "? 4 5" << endl;
  cin >> c;
  cout << "? 5 6" << endl;
  cin >> d;
  values.clear();
  values = {mult[c].first, mult[c].second, mult[d].first, mult[d].second};
  for (int i = 0; i < values.size(); i++) {
    int value = -1;
    for (int j = i + 1; j < values.size(); j++) {
      if (values[j] == values[i]) {
        value = values[i];
        break;
      }
    }
    if (value != -1) {
      ans[4] = value;
      if (values[0] != value)
        ans[3] = values[0];
      else
        ans[3] = values[1];
      if (values[2] != value)
        ans[5] = values[2];
      else
        ans[5] = values[3];
      break;
    }
  }
  cout << "! ";
  for (int i : ans) cout << i << " ";
  cout << endl;
  return 0;
}
