#include <bits/stdc++.h>
using namespace std;
int n, ones;
string s;
int ask(int x) {
  int l = 0, r = n - 1;
  while (l < r) {
    int mid = (l + r) / 2;
    for (int i = 0; i < n; ++i) s[i] = ('0' ^ x);
    for (int i = l; i <= mid; ++i) s[i] = ('1' ^ x);
    cout << "? " << s << endl;
    fflush(stdout);
    int y;
    cin >> y;
    if (y == ones + (mid - l + 1))
      l = mid + 1;
    else
      r = mid;
  }
  return l + 1;
}
int main() {
  cin >> n;
  for (int i = 0; i < n; ++i) s += '0';
  cout << "? " << s << endl;
  fflush(stdout);
  cin >> ones;
  s[0] = '1';
  cout << "? " << s << endl;
  fflush(stdout);
  int y;
  cin >> y;
  if (y > ones) {
    cout << "! 1 " << ask(0) << endl;
  } else {
    ones = n - ones;
    cout << "! " << ask(1) << " 1" << endl;
  }
}
