#include <bits/stdc++.h>
using namespace std;
void fs() { fflush(stdout); }
int n;
int cnt1;
bool check(int l, int r) {
  int tmp;
  int len = r - l + 1;
  printf("? ");
  for (int i = 1; i < (l); ++i) printf("0");
  for (int i = l; i < (r + 1); ++i) printf("1");
  for (int i = r + 1; i < (n + 1); ++i) printf("0");
  puts("");
  fs();
  scanf("%d", &tmp);
  if (tmp > cnt1 - len && tmp < cnt1 + len) return true;
  return false;
}
int main() {
  scanf("%d", &n);
  int l = 1, r = n;
  int mid;
  int tmp;
  printf("? ");
  for (int i = 1; i <= n; i++) printf("0");
  puts("");
  fs();
  scanf("%d", &cnt1);
  while (r - l > 1) {
    mid = (l + r) / 2;
    if (check(mid, r))
      l = mid;
    else
      r = mid;
  }
  printf("? ");
  for (int i = 1; i < (l); ++i) printf("0");
  printf("1");
  for (int i = l + 1; i < (n + 1); ++i) printf("0");
  puts("");
  fs();
  scanf("%d", &tmp);
  printf("! ");
  if (tmp < cnt1)
    printf("%d %d\n", r, l);
  else
    printf("%d %d\n", l, r);
  fs();
  return 0;
}
