#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  printf("? ");
  for (int i = 0; i < int(n); i++) printf("0");
  printf("\n");
  fflush(stdout);
  int nT1;
  scanf("%d", &nT1);
  int nT0 = n - nT1;
  printf("? ");
  printf("1");
  for (int i = 0; i < int(n - 1); i++) printf("0");
  printf("\n");
  fflush(stdout);
  int AUX;
  scanf("%d", &AUX);
  int f, s, R, RR;
  if (AUX < nT1)
    f = 1, s = 0, RR = nT0;
  else
    f = 0, s = 1, RR = nT1;
  int l = 2, r = n;
  while (l != r) {
    int m = (l + r) / 2;
    int S = m - l + 1;
    printf("? ");
    for (int i = 1; i <= m; i++) printf("%d", f);
    for (int i = m + 1; i <= n; i++) printf("%d", s);
    printf("\n");
    fflush(stdout);
    int Q;
    scanf("%d", &Q);
    R = n - l - RR;
    Q -= R;
    int numS = (Q + S) / 2;
    if (numS > 0)
      r = m;
    else
      l = m + 1;
  }
  int pos1 = 1, pos2 = l;
  if (f == 1) swap(pos1, pos2);
  printf("! %d %d\n", pos1, pos2);
}
