#include <bits/stdc++.h>
using namespace std;
int n;
int l, r, mid;
int cnt = 60;
long long gcd(long long x, long long y) {
  if (y == 0)
    return x;
  else
    return gcd(y, x % y);
}
bool check(int x) {
  cnt--;
  printf("> %d\n", x);
  fflush(stdout);
  int t;
  scanf("%d", &t);
  return t;
}
int main() {
  scanf("%d", &n);
  l = 0, r = 1e9;
  while (l < r) {
    mid = (l + r) >> 1;
    if (!check(mid))
      r = mid;
    else
      l = mid + 1;
  }
  long long x = r, d = 0;
  while (cnt--) {
    int i = rand() * rand() % n + 1;
    printf("? %d\n", i);
    fflush(stdout);
    long long t;
    scanf("%lld", &t);
    d = gcd(d, x - t);
  }
  printf("! %lld %lld\n", x - d * (n - 1), d);
  return 0;
}
