#include <bits/stdc++.h>
using namespace std;
inline string blank(long long n) {
  string str;
  str.resize(n);
  for (long long i = 0; i < n; i++) {
    str[i] = '0';
  }
  return str;
}
inline string str1(long long n, long long t) {
  string str;
  str.resize(n);
  for (long long i = 0; i < n; i++) {
    if (i <= t)
      str[i] = '0';
    else
      str[i] = '1';
  }
  return str;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long n;
  cin >> n;
  cout << "? " << blank(n) << endl;
  long long alldist;
  cin >> alldist;
  cout << "? " << str1(n, 0) << endl;
  long long dist0;
  cin >> dist0;
  long long ftype;
  if (dist0 + alldist - (n - 1) == 0) {
    ftype = 0;
  } else {
    ftype = 1;
  }
  long long l = 1, r = n - 1;
  while (l < r) {
    long long mid = (l + r) / 2;
    cout << "? " << str1(n, mid) << endl;
    long long qres;
    cin >> qres;
    if (ftype == 0 && qres + alldist - (n - mid - 1) == 0) {
      l = mid + 1;
    } else if (ftype == 1 && qres + alldist - (n - mid - 1) == (mid * 2 + 2)) {
      l = mid + 1;
    } else {
      r = mid;
    }
  }
  if (ftype == 0)
    cout << "! " << 1 << ' ' << l + 1 << endl;
  else
    cout << "! " << l + 1 << ' ' << 1 << endl;
  return 0;
}
