#include <bits/stdc++.h>
using namespace std;
string s;
int Ask(string s, int n) {
  cout << "? " + s.substr(0, n) << endl;
  fflush(stdout);
  int ret;
  cin >> ret;
  return ret;
}
void flip(int l, int r) {
  for (int i = l; i < r; i++) {
    if (s[i] == '1') {
      s[i] = '0';
    } else {
      s[i] = '1';
    }
  }
}
int main() {
  int n;
  cin >> n;
  s.resize(n, '0');
  int a = Ask(s, n);
  s[0] = '1';
  int b = Ask(s, n);
  s[0] = 0;
  char c;
  if (a == b + 1) {
    c = '0';
  } else {
    c = '1';
  }
  for (int i = 0; i < n; i++) {
    s[i] = c;
  }
  int basic = c == '0' ? a : n - a;
  int left = 0;
  int right = n;
  while (left < right - 1) {
    int mid = (left + right + 1) / 2;
    int len = mid - left;
    flip(left, mid);
    int ask = Ask(s, n);
    flip(left, mid);
    int l = (len + basic - ask) / 2;
    l = len - l;
    if (l == 0) {
      left = mid;
    } else {
      right = mid;
    }
  }
  if (c == '1') {
    printf("! 1 %d\n", left + 1);
  } else {
    printf("! %d 1\n", left + 1);
  }
  fflush(stdout);
}
