#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a[4];
  for (long long i = 0; i < 4; i++) {
    cout << "?"
         << " " << 1 << " " << i + 2 << endl;
    cin >> a[i];
  }
  long long c1 = 0;
  long long c2 = 0;
  long long c3 = 0;
  long long c4 = 0;
  long long c5 = 0;
  long long c6 = 0;
  for (long long i = 0; i < 4; i++) {
    if (a[i] % 4 == 0) c1++;
    if (a[i] % 8 == 0) c2++;
    if (a[i] % 16 == 0) c3++;
    if (a[i] % 42 == 0) c4++;
    if (a[i] % 15 == 0) c5++;
    if (a[i] % 23 == 0) c6++;
  }
  long long p1, p2, p3, p4, p5, p6;
  if (c1 == 4) p1 = 4;
  if (c2 == 4) p1 = 8;
  if (c3 == 4) p1 = 16;
  if (c4 == 4) p1 = 42;
  if (c5 == 4) p1 = 15;
  if (c6 == 4) p1 = 23;
  p2 = a[0] / p1;
  p3 = a[1] / p1;
  p4 = a[2] / p1;
  p5 = a[3] / p1;
  p6 = 4 + 8 + 15 + 16 + 23 + 42 - p1 - p2 - p3 - p4 - p5;
  cout << "!"
       << " " << p1 << " " << p2 << " " << p3 << " " << p4 << " " << p5 << " "
       << p6 << endl;
}
