#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int ans0, ans1;
  cout << "? ";
  for (int i = 0; i < n; ++i) cout << '1';
  cout << endl;
  cin >> ans1;
  cout << "? 0";
  for (int i = 0; i < n - 1; ++i) cout << '1';
  cout << endl;
  cin >> ans0;
  bool fir = (ans1 < ans0);
  int l = 1, r = n, prev = ans1;
  while (r - l > 1) {
    int m = l + r >> 1;
    cout << "? ";
    for (int i = 0; i < m; ++i) cout << '0';
    for (int i = 0; i < n - m; ++i) cout << '1';
    cout << endl;
    int curr;
    cin >> curr;
    if (abs(curr - ans1) == m)
      l = m;
    else
      r = m;
  }
  if (!fir)
    cout << "! 1 " << r << endl;
  else
    cout << "! " << r << " 1" << endl;
  return 0;
}
