#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int n;
  cin >> n;
  auto ask = [](string s) {
    cout << "? " << s << endl;
    int cnt;
    cin >> cnt;
    return cnt;
  };
  int init = ask(string(n, '1'));
  int test = ask('0' + string(n - 1, '1'));
  if (test > init) {
    int l = 1, r = n - 1;
    while (l < r) {
      int mid = (l + r) / 2;
      test = ask(string(l, '1') + string(mid - l + 1, '1') +
                 string(r - mid, '0') + string(n - r - 1, '1'));
      int diff = test - init;
      if (diff != r - mid)
        l = mid + 1;
      else
        r = mid;
    }
    cout << "! " << l + 1 << ' ' << 1 << endl;
  } else {
    int l = 1, r = n - 1;
    while (l < r) {
      int mid = (l + r) / 2;
      test = ask(string(l, '1') + string(mid - l + 1, '1') +
                 string(r - mid, '0') + string(n - r - 1, '1'));
      int diff = test - init;
      if (diff != -(r - mid))
        l = mid + 1;
      else
        r = mid;
    }
    cout << "! " << 1 << ' ' << l + 1 << endl;
  }
}
