#include <bits/stdc++.h>
using namespace std;
int a[5];
int num[7] = {0, 4, 8, 15, 16, 23, 42}, pas;
int main() {
  for (int i = 1; i <= 4; i++) {
    cout << "? " << i << " " << i + 1 << endl;
    fflush(stdout);
    cin >> a[i];
  }
  do {
    pas = 1;
    for (int i = 1; i <= 4; i++) {
      if (num[i] * num[i + 1] != a[i]) {
        pas = 0;
        break;
      }
    }
    if (pas == 1) break;
  } while (next_permutation(num + 1, num + 7));
  cout << "! ";
  for (int i = 1; i <= 6; i++) cout << num[i] << " ";
  cout << endl;
  fflush(stdout);
  return 0;
}
