#include <bits/stdc++.h>
using namespace std;
const long long maxn = 5e5;
const long long ZERO = 0;
const long long SADAT = 7.84e-17;
const long long INF = 1e9;
const long long mod = 1e9 + 7;
int a[4];
int main() {
  cout << "? 1 2" << '\n';
  cout << "? 2 3" << '\n';
  cout << "? 4 5" << '\n';
  cout << "? 5 6" << '\n';
  fflush(stdout);
  for (int i = 0; i < 4; i++) {
    cin >> a[i];
  }
  int b[6] = {4, 8, 15, 16, 23, 42};
  for (int i = 0; i < 6; i++) {
    for (int j = 0; j < 6; j++) {
      for (int k = 0; k < 6; k++) {
        for (int h = 0; h < 6; h++) {
          for (int l = 0; l < 6; l++) {
            for (int g = 0; g < 6; g++) {
              if (i != j and i != k and i != h and i != l and i != g and
                  j != k and j != h and j != l and j != g and k != h and
                  k != l and k != g and h != l and h != g and l != g) {
                if (b[i] * b[j] == a[0] and b[j] * b[k] == a[1] and
                    b[h] * b[l] == a[2] and b[l] * b[g] == a[3]) {
                  cout << '!' << ' ' << b[i] << ' ' << b[j] << ' ' << b[k]
                       << ' ' << b[h] << ' ' << b[l] << ' ' << b[g];
                  return (0);
                }
              }
            }
          }
        }
      }
    }
  }
  return (0);
}
