#include <bits/stdc++.h>
using namespace std;
int black = 0;
int n;
bool check(int L, int R) {
  printf("? ");
  for (int i = 1; i < L; i++) {
    printf("%d", 0);
  }
  for (int i = L; i <= R; i++) {
    printf("%d", 1);
  }
  for (int i = R + 1; i <= n; i++) {
    printf("%d", 0);
  }
  puts("");
  fflush(stdout);
  int req;
  scanf("%d", &req);
  if (black - (R - L + 1) < req && req < black + (R - L + 1)) {
    return true;
  } else {
    return false;
  }
}
int pos1, pos0;
int main() {
  scanf("%d", &n);
  printf("? ");
  for (int i = 1; i <= n; i++) {
    printf("%d", 0);
  }
  puts("");
  fflush(stdout);
  scanf("%d", &black);
  int L = 1, R = n;
  while (R - L >= 2) {
    int mid = (R + L) / 2;
    if (check(mid, R)) {
      L = mid;
    } else {
      R = mid;
    }
  }
  printf("? ");
  for (int i = 1; i < L; i++) {
    printf("%d", 0);
  }
  printf("1");
  for (int i = L + 1; i <= n; i++) {
    printf("%d", 0);
  }
  puts("");
  fflush(stdout);
  int req;
  scanf("%d", &req);
  printf("! ");
  if (req < black) {
    cout << R << ' ' << L << endl;
  } else {
    cout << L << ' ' << R << endl;
  }
  fflush(stdout);
  return 0;
}
