#include <bits/stdc++.h>
using namespace std;
char s[1001];
int query() {
  int h;
  cout << "? " << s << '\n';
  cout.flush();
  cin >> h;
  return h;
}
int main() {
  int n;
  cin >> n;
  int low = 1, high = n, mid;
  int one = 0, zero = 0;
  for (int i = 0; i < n; ++i) {
    s[i] = '0';
  }
  s[n] = '\0';
  int h = query();
  s[0] = '1';
  int hh = query();
  if (h > hh) {
    one = 1;
  } else
    zero = 1;
  if (one == 0) {
    while (low <= high) {
      mid = low + (high - low + 1) / 2;
      for (int i = 0; i < mid; ++i) s[i] = '1';
      for (int i = mid; i < n; ++i) s[i] = '0';
      int newh = query();
      if (newh == h + mid) {
        low = mid + 1;
      } else {
        high = mid - 1;
        one = mid;
      }
    }
  } else {
    while (low <= high) {
      mid = low + (high - low + 1) / 2;
      for (int i = 0; i < mid; ++i) s[i] = '1';
      for (int i = mid; i < n; ++i) s[i] = '0';
      int newh = query();
      if (newh + mid == h) {
        low = mid + 1;
      } else {
        high = mid - 1;
        zero = mid;
      }
    }
  }
  cout << "! " << zero << ' ' << one << '\n';
  cout.flush();
}
