#include <bits/stdc++.h>
using namespace std;
int main() {
  cout << "? 1 2\n";
  cout << "? 2 3\n";
  cout << "? 4 5\n";
  cout << "? 5 6\n";
  fflush(stdout);
  int arr[6] = {4, 8, 15, 16, 23, 42};
  map<int, int> m;
  m[4] = 1;
  m[8] = 1;
  m[15] = 1;
  m[16] = 1;
  m[23] = 1;
  m[42] = 1;
  int x, y;
  int a[6];
  cin >> x;
  cin >> y;
  for (int i = 5; i >= 0; i--) {
    if (x % arr[i] == 0 && y % arr[i] == 0 && m[x / arr[i]] == 1 &&
        m[y / arr[i]] == 1 && (x / arr[i]) != arr[i] &&
        (y / arr[i]) != arr[i]) {
      a[1] = arr[i];
      break;
    }
  }
  a[0] = x / a[1];
  a[2] = y / a[1];
  cin >> x;
  cin >> y;
  for (int i = 5; i >= 0; i--) {
    if (x % arr[i] == 0 && y % arr[i] == 0 && arr[i] != a[0] &&
        arr[i] != a[1] && arr[i] != a[2] && m[x / arr[i]] == 1 &&
        m[y / arr[i]] == 1 && (x / arr[i]) != arr[i] &&
        (y / arr[i]) != arr[i]) {
      a[4] = arr[i];
      break;
    }
  }
  a[3] = x / a[4];
  a[5] = y / a[4];
  cout << "! ";
  for (int i = 0; i < 6; i++) cout << a[i] << " ";
}
