#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, b, c, d, e, f, g, h, i, j, k;
  int aa[6] = {4, 8, 15, 16, 23, 42};
  int ab[15];
  pair<int, int> ac[15];
  f = 0;
  for (a = 0; a < 6; ++a) {
    for (b = a + 1; b < 6; ++b) {
      ab[f] = aa[a] * aa[b];
      ac[f] = make_pair(aa[a], aa[b]);
      f = f + 1;
    }
  }
  cout << '?' << ' ' << 1 << ' ' << 2 << endl;
  cin >> c;
  cout << '?' << ' ' << 2 << ' ' << 3 << endl;
  cin >> d;
  cout << '?' << ' ' << 4 << ' ' << 5 << endl;
  cin >> e;
  cout << '?' << ' ' << 5 << ' ' << 6 << endl;
  cin >> f;
  for (b = 0; b < 15; ++b) {
    if (ab[b] == c) g = b;
    if (ab[b] == d) h = b;
  }
  if (ac[g].first == ac[h].first || ac[g].first == ac[h].second)
    i = ac[g].first;
  else
    i = ac[g].second;
  int ad[6];
  ad[1] = i;
  ad[0] = c / i;
  ad[2] = d / i;
  for (b = 0; b < 15; ++b) {
    if (ab[b] == e) g = b;
    if (ab[b] == f) h = b;
  }
  if (ac[g].first == ac[h].first || ac[g].first == ac[h].second)
    i = ac[g].first;
  else
    i = ac[g].second;
  ad[5] = f / i;
  ad[4] = i;
  ad[3] = e / i;
  cout << "!" << ' ';
  for (b = 0; b < 6; ++b) {
    cout << ad[b] << ' ';
  }
  cout << endl;
  return 0;
}
