#include <bits/stdc++.h>
using namespace std;
int main() {
  long long arr[7] = {4, 8, 15, 16, 23, 42}, i, j;
  map<long long, pair<long long, long long>> mp;
  for (i = 0; i < 6; i++) {
    for (j = 0; j < 6; j++) {
      mp[arr[i] * arr[j]] = make_pair(arr[i], arr[j]);
    }
  }
  long long a[5];
  cout << "? 1 2 " << endl;
  fflush(stdout);
  cin >> a[0];
  cout << "? 2 3 " << endl;
  fflush(stdout);
  cin >> a[1];
  cout << "? 4 4 " << endl;
  fflush(stdout);
  cin >> a[2];
  cout << "? 5 5 " << endl;
  fflush(stdout);
  cin >> a[3];
  long long arr1, arr2, arr3, arr4, arr5, arr6;
  long long freq[50] = {0};
  arr4 = sqrt(a[2]);
  freq[arr4]++;
  arr5 = sqrt(a[3]);
  freq[arr5]++;
  if (mp[a[0]].first == mp[a[1]].first) {
    arr2 = mp[a[0]].first;
    arr1 = mp[a[0]].second;
    arr3 = mp[a[1]].second;
  } else if (mp[a[0]].first == mp[a[1]].second) {
    arr2 = mp[a[0]].first;
    arr1 = mp[a[0]].second;
    arr3 = mp[a[1]].first;
  } else if (mp[a[0]].second == mp[a[1]].first) {
    arr2 = mp[a[0]].second;
    arr1 = mp[a[0]].first;
    arr3 = mp[a[1]].second;
  } else {
    arr2 = mp[a[0]].second;
    arr1 = mp[a[0]].first;
    arr3 = mp[a[1]].first;
  }
  freq[arr1]++;
  freq[arr2]++;
  freq[arr3]++;
  i = 0;
  while (i < 6) {
    if (freq[arr[i]] != 1) {
      arr6 = arr[i];
      break;
    }
    i++;
  }
  cout << "! " << arr1 << " " << arr2 << " " << arr3 << " " << arr4 << " "
       << arr5 << " " << arr6 << endl;
}
