#include <bits/stdc++.h>
using namespace std;
const int N = 1000 + 10;
int n;
char s[N];
int main() {
  ios::sync_with_stdio(false);
  cin >> n;
  for (int i = 0; i < n; i++) {
    s[i] = '0';
  }
  s[n] = 0;
  cout << "? " << s << '\n';
  int t, t1, t2;
  cin >> t;
  t1 = 1;
  int le = 1;
  int ri = n;
  while (le < ri) {
    int mid = le + (ri - le) / 2;
    cout << "? ";
    for (int i = 0; i < mid; i++) cout << '1';
    cout << s + mid << '\n';
    cin >> t2;
    if (abs(t2 - t) == mid) {
      t1 = t2;
      le = mid + 1;
    } else
      ri = mid;
  }
  if (t1 < t)
    cout << "! " << le << " " << le - 1 << '\n';
  else
    cout << "! " << le - 1 << " " << le << '\n';
  return 0;
}
