#include <bits/stdc++.h>
using namespace std;
template <class Iter>
void rprintf(const char *fmt, Iter begin, Iter end) {
  for (bool sp = 0; begin != end; ++begin) {
    if (sp)
      putchar(' ');
    else
      sp = true;
    printf(fmt, *begin);
  }
  putchar('\n');
}
long long gcd(long long a, long long b) { return b == 0 ? a : gcd(b, a % b); }
int main() {
  int n, m;
  scanf("%d", &n);
  printf("? ");
  for (int i = (0); i < (n); ++i) printf("0");
  printf("\n");
  fflush(stdout);
  scanf("%d", &m);
  int left = 1, right = n;
  int sm;
  while (right - left >= 2) {
    int mid = (right + left) / 2;
    printf("? ");
    for (int i = (1); i <= (n); ++i)
      if (i >= left && i <= mid)
        printf("1");
      else
        printf("0");
    printf("\n");
    fflush(stdout);
    scanf("%d", &sm);
    if (sm == m - (mid - left + 1) || sm == m + (mid - left + 1))
      left = mid;
    else
      right = mid;
  }
  printf("? ");
  for (int i = (1); i <= (n); ++i)
    if (i == right)
      printf("1");
    else
      printf("0");
  printf("\n");
  fflush(stdout);
  scanf("%d", &sm);
  int sx, sy;
  if (m == sm + 1)
    sx = right - 1, sy = right;
  else
    sx = right, sy = right - 1;
  printf("! %d %d\n", sx, sy);
  fflush(stdout);
  return 0;
}
