#include <bits/stdc++.h>
using namespace std;
int inp[1005];
int ans0, ans1, all0;
int main() {
  int n, k;
  scanf("%d", &n);
  int l = 1, r = n;
  printf("? ");
  for (int i = 1; i <= n; i++) printf("0");
  printf("\n");
  fflush(stdout);
  scanf("%d", &all0);
  int all1 = n - all0;
  printf("? 1");
  for (int i = 2; i <= n; i++) printf("0");
  printf("\n");
  fflush(stdout);
  scanf("%d", &k);
  if (all0 < k)
    ans0 = 1;
  else
    ans1 = 1;
  if (n == 2) {
    if (ans1)
      printf("! 2 1\n");
    else
      printf("! 1 2\n");
    fflush(stdout);
  } else if (ans0) {
    while (l + 1 < r) {
      int mid = (l + r) / 2;
      printf("? ");
      for (int i = 1; i < l; i++) printf("0");
      for (int i = l; i <= mid; i++) printf("0");
      for (int i = mid + 1; i <= r; i++) printf("1");
      for (int i = r + 1; i <= n; i++) printf("0");
      printf("\n");
      fflush(stdout);
      scanf("%d", &k);
      if (k == all0 + (r - mid))
        r = mid;
      else
        l = mid;
    }
    printf("! %d %d\n", ans0, r);
    fflush(stdout);
  } else {
    while (l + 1 < r) {
      int mid = (l + r) / 2;
      printf("? ");
      for (int i = 1; i < l; i++) printf("1");
      for (int i = l; i <= mid; i++) printf("1");
      for (int i = mid + 1; i <= r; i++) printf("0");
      for (int i = r + 1; i <= n; i++) printf("1");
      printf("\n");
      fflush(stdout);
      scanf("%d", &k);
      if (k == all1 + (r - mid))
        r = mid;
      else
        l = mid;
    }
    printf("! %d %d\n", r, ans1);
    fflush(stdout);
  }
}
