#include <bits/stdc++.h>
using namespace std;
int a[1010], n, t1, ans0, ans1, t2, l, r, m, t3;
void print() {
  cout << "? ";
  int i;
  for (i = 1; i <= n; i++) cout << a[i];
  cout << endl;
  fflush(stdout);
}
void st(int x, int y) {
  int i;
  for (i = 1; i <= n; i++) a[i] = 0;
  for (i = x; i <= y; i++) a[i] = 1;
}
int main() {
  int i;
  cin >> n;
  print();
  cin >> t1;
  a[1] = 1;
  print();
  cin >> t2;
  if (t2 < t1) {
    ans1 = 1;
    l = 2;
    r = n;
    while (l < r) {
      m = (l + r) / 2;
      st(l, m);
      print();
      cin >> t3;
      if (t3 == t1 - (m - l + 1))
        l = m + 1;
      else
        r = m;
    }
    ans0 = l;
  } else {
    ans0 = 1;
    l = 2;
    r = n;
    while (l < r) {
      m = (l + r) / 2;
      st(l, m);
      print();
      cin >> t3;
      if (t3 == t1 + (m - l + 1))
        l = m + 1;
      else
        r = m;
    }
    ans1 = l;
  }
  cout << "! " << ans0 << " " << ans1 << endl;
  fflush(stdout);
}
