#include <bits/stdc++.h>
using namespace std;
int main() {
  long long i, j, k, l, n, m, sum = 0, temp_b;
  int a[6] = {4, 8, 15, 16, 23, 42};
  int b[6][6];
  for (i = 0; i < 6; i++) {
    for (j = 0; j < 6; j++) {
      if (i == j)
        b[i][j] = 0;
      else
        b[i][j] = a[i] * a[j];
    }
  }
  int x1, x2, x3, x4, x4_, x5, x6, p1, p2;
  cout << "? 1 1" << endl;
  fflush(stdout);
  cin >> x1;
  x1 = sqrt(x1);
  cout << "? 2 2" << endl;
  fflush(stdout);
  cin >> x2;
  x2 = sqrt(x2);
  cout << "? 3 4" << endl;
  fflush(stdout);
  cin >> p1;
  cout << "? 4 5" << endl;
  fflush(stdout);
  cin >> p2;
  for (i = 0; i < 6; i++) {
    for (j = 0; j < 6; j++) {
      if (b[i][j] == p1) break;
    }
    if (b[i][j] == p1) break;
  }
  x3 = a[i];
  x4 = a[j];
  for (i = 0; i < 6; i++) {
    for (j = 0; j < 6; j++) {
      if (b[i][j] == p2) break;
    }
    if (b[i][j] == p2) break;
  }
  x4_ = a[i];
  x5 = a[j];
  if (x4_ == x4) {
  } else {
    if (x4 == x5) {
      x5 = x4_;
    } else {
      if (x3 == x4_) {
        x3 = x4;
        x4 = x4_;
      } else {
        x3 = x4;
        x4 = x5;
        x5 = x4_;
      }
    }
  }
  for (i = 0; i < 6; i++) {
    if (a[i] != x1 && a[i] != x2 && a[i] != x3 && a[i] != x4 && a[i] != x5)
      x6 = a[i];
  }
  cout << "! " << x1 << " " << x2 << " " << x3 << " " << x4 << " " << x5 << " "
       << x6 << endl;
  return 0;
}
