#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k;
  int n, tot, low, mid, high, pos0, pos1, cur;
  string str = "";
  cin >> n;
  for (i = 0; i < n; ++i) str += "1";
  cout << "? " << str << endl;
  fflush(stdout);
  cin >> tot;
  low = 0, high = n - 1, mid, pos0 = -1, pos1 = -1;
  while (high >= low) {
    mid = (low + high) / 2;
    if (low == high) {
      str[low] = '0';
      cout << "? " << str << endl;
      fflush(stdout);
      cin >> cur;
      if (cur > tot)
        pos1 = low;
      else
        pos0 = low;
      break;
    }
    for (i = low; i <= mid; ++i) str[i] = '0';
    cout << "? " << str << endl;
    cin >> cur;
    for (i = low; i <= mid; ++i) str[i] = '1';
    if (mid - low + 1 == tot - cur) {
      pos0 = mid;
      low = mid + 1;
    } else if (mid - low + 1 == cur - tot) {
      pos1 = mid;
      low = mid + 1;
    } else
      high = mid;
  }
  cout << "! " << pos0 + 1 << " " << pos1 + 1 << endl;
  fflush(stdout);
  return 0;
}
