#include <bits/stdc++.h>
using namespace std;
int n;
int query(string s) {
  cout << "?"
       << " " << s << endl;
  cout.flush();
  int ans;
  cin >> ans;
  ans = n - ans;
  return ans;
}
string str(int k) {
  string s;
  s.resize(n);
  for (int i = 0; i < k; i++) s[i] = '0';
  for (int i = k; i < n; i++) s[i] = '1';
  return s;
}
int main() {
  cin >> n;
  int a;
  a = query(str(0));
  if (query(str(1)) > a) {
    int p = 1, k = n - 1, x;
    while (p != k) {
      x = (p + k + 1) / 2;
      if (query(str(x)) < x + a)
        k = x - 1;
      else
        p = x;
    }
    cout << "!"
         << " " << 1 << " " << p + 1 << endl;
    cout.flush();
  } else {
    int p = 1, k = n - 1, x;
    while (p != k) {
      x = (p + k + 1) / 2;
      if (query(str(x)) > a - x)
        k = x - 1;
      else
        p = x;
    }
    cout << "!"
         << " " << p + 1 << " " << 1 << endl;
    cout.flush();
  }
}
