#include <bits/stdc++.h>
using namespace std;
int ask(int i, int j) {
  cout << "? " << i + 1 << ' ' << j + 1 << endl;
  int ret;
  cin >> ret;
  return ret;
}
int main() {
  vector<int> nums{4, 8, 15, 16, 23, 42};
  vector<int> ans(6);
  int mu1 = ask(0, 1);
  int mu2 = ask(1, 2);
  pair<int, int> pp1, pp2;
  for (int i : nums)
    for (int j : nums)
      if (i * j == mu1) pp1 = {i, j};
  for (int i : nums)
    for (int j : nums)
      if (i * j == mu2) pp2 = {i, j};
  if (pp1.second == pp2.second || pp1.second == pp2.first) {
    ans[0] = pp1.first;
    ans[1] = pp1.second;
    ans[2] = (pp1.second == pp2.second ? pp2.first : pp2.second);
  } else {
    ans[0] = pp1.second;
    ans[1] = pp1.first;
    ans[2] = (pp1.first == pp2.second ? pp2.first : pp2.second);
  }
  mu1 = ask(3, 4);
  mu2 = ask(4, 5);
  for (int i : nums)
    for (int j : nums)
      if (i * j == mu1) pp1 = {i, j};
  for (int i : nums)
    for (int j : nums)
      if (i * j == mu2) pp2 = {i, j};
  if (pp1.second == pp2.second || pp1.second == pp2.first) {
    ans[3] = pp1.first;
    ans[4] = pp1.second;
    ans[5] = (pp1.second == pp2.second ? pp2.first : pp2.second);
  } else {
    ans[3] = pp1.second;
    ans[4] = pp1.first;
    ans[5] = (pp1.first == pp2.second ? pp2.first : pp2.second);
  }
  cout << "! ";
  for (int i : ans) cout << i << ' ';
  cout << endl;
}
