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