#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<long long> v, v1;
  v1.push_back(4);
  v1.push_back(8);
  v1.push_back(15);
  v1.push_back(16);
  v1.push_back(23);
  v1.push_back(42);
  long long a, b, c, d, e, first;
  cout << "? " << 1 << " " << 1 << "\n";
  cin >> a;
  for (long long i = 0; i < v1.size(); i++)
    if (v1[i] == (long long)sqrt(a)) {
      v1.erase(v1.begin() + i);
      break;
    }
  v.push_back((long long)sqrt(a));
  cout << "? " << 2 << " " << 2 << "\n";
  cin >> a;
  for (long long i = 0; i < v1.size(); i++)
    if (v1[i] == (long long)sqrt(a)) {
      v1.erase(v1.begin() + i);
      break;
    }
  v.push_back((long long)sqrt(a));
  cout << "? " << 3 << " " << 4 << "\n";
  cin >> b;
  cout << "? " << 4 << " " << 5 << "\n";
  cin >> c;
  for (long long i = 0; i < 4; i++) {
    for (long long j = 0; j < 4; j++) {
      for (long long k = 0; k < 4; k++) {
        if (i != j && j != k)
          if (v1[i] * v1[j] == b && v1[j] * v1[k] == c) {
            v.push_back(v1[i]);
            v.push_back(v1[j]);
            v.push_back(v1[k]);
            d = v1[i];
            e = v1[j];
            first = v1[k];
            break;
          }
      }
    }
  }
  for (long long i = 0; i < 4; i++)
    if (v1[i] != d && v1[i] != e && v1[i] != first) {
      v.push_back(v1[i]);
      break;
    }
  cout << "! ";
  for (long long i = 0; i < 6; i++) cout << v[i] << " ";
  cout << "\n";
  return 0;
}
