#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int ans[6];
  cout << "? 1 2" << '\n';
  cout.flush();
  double a;
  cin >> a;
  cout << "? 2 3" << '\n';
  cout.flush();
  double b;
  cin >> b;
  map<double, bool> have;
  have[4] = 1;
  have[8] = 1;
  have[15] = 1;
  have[16] = 1;
  have[23] = 1;
  have[42] = 1;
  double arr[6] = {4, 8, 15, 16, 23, 42};
  for (int i = 0; i < 6; i++) {
    if ((have[a / arr[i]] && a / arr[i] != arr[i]) &&
        (have[b / arr[i]] && b / arr[i] != arr[i])) {
      ans[1] = arr[i];
      ans[0] = a / arr[i];
      ans[2] = b / arr[i];
      break;
    }
  }
  cout << "? 4 5" << '\n';
  cout.flush();
  double c;
  cin >> c;
  cout << "? 5 6" << '\n';
  cout.flush();
  double d;
  cin >> d;
  for (int i = 0; i < 6; i++) {
    if ((have[c / arr[i]] && c / arr[i] != arr[i]) &&
        (have[d / arr[i]] && d / arr[i] != arr[i])) {
      ans[4] = arr[i];
      ans[3] = c / arr[i];
      ans[5] = d / arr[i];
      break;
    }
  }
  cout << "! ";
  for (int i = 0; i < 6; i++) {
    cout << ans[i] << " ";
  }
  return 0;
}
