#include <bits/stdc++.h>
using namespace std;
struct comp {
  bool operator()(int a, int b) { return a > b; }
};
int main() {
  printf("? ");
  for (int i = 0; i <= 99; i++) printf("%d ", i);
  printf("\n");
  fflush(stdout);
  int n;
  scanf("%d", &n);
  n -= n % 128;
  printf("? ");
  for (int i = 0; i <= 99; i++) printf("%d ", 128 * (i + 1));
  printf("\n");
  fflush(stdout);
  int m;
  scanf("%d", &m);
  printf("! %d\n", n + (m % 128));
  fflush(stdout);
  return 0;
}
