#include <bits/stdc++.h>
using namespace std;
int n, zero, one, tot;
string o;
int ask(string s) {
  cout << "? " << s << endl;
  fflush(stdout);
  int val;
  scanf("%d", &val);
  return val;
}
void bin(int l, int r) {
  if (l > r) return;
  int mid = (l + r) / 2;
  string str = o;
  for (int i = l; i <= mid; i++) str[i] = '0';
  int diff = tot - ask(str);
  if (diff == (mid - l + 1)) {
    zero = l;
    bin(mid + 1, r);
  } else if (diff == (l - mid - 1)) {
    one = l;
    bin(mid + 1, r);
  } else {
    bin(l, mid);
  }
}
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) o += '1';
  tot = ask(o);
  bin(0, n - 1);
  printf("! %d %d\n", zero + 1, one + 1);
  fflush(stdout);
  return 0;
}
