#include <bits/stdc++.h>
using namespace std;
int f(string s, string t) {
  int sum = 0;
  for (int i = 0; i < s.size(); i++) {
    sum += s[i] != t[i];
  }
  return sum;
}
int ask(string s) {
  cout << "? " + s << endl;
  int ret;
  cin >> ret;
  return ret;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  string s(n, '0');
  int h = ask(s);
  s[0] = '1';
  int res = ask(s);
  int L = 0;
  if (res < h) {
    L = 1;
  } else {
    string s(n, '1');
    h = ask(s);
  }
  int l = 1, r = n;
  while (abs(l - r) > 1) {
    int mid = (l + r) / 2;
    s = string(n, '0' + (1 - L));
    for (int i = 0; i < mid; i++) {
      s[i] = '0' + L;
    }
    res = ask(s);
    if (abs(res - h) == mid)
      l = mid;
    else
      r = mid;
  }
  if (L == 0) {
    cout << "! " << 1 << " " << l + 1 << endl;
  } else {
    cout << "! " << l + 1 << " " << 1 << endl;
  }
}
