#include <bits/stdc++.h>
using namespace std;
int n, pos0, pos1;
void print(int a, int b, int out, int in) {
  if (a == b) {
    if (in == 0)
      pos0 = a;
    else
      pos1 = a;
    return;
  }
  int ans;
  int mid = (a + b) / 2;
  int s1 = mid - a + 1;
  int s2 = b - mid;
  cout << "? ";
  for (int i = 1; i < a; ++i) cout << '0';
  for (int i = a; i <= mid; ++i) cout << '1';
  for (int i = mid + 1; i <= n; ++i) cout << '0';
  cout << '\n';
  fflush(stdout);
  cin >> ans;
  ans -= out;
  int x, y;
  y = (in + ans - s1) / 2;
  x = in - y;
  if (x == 0) {
    pos0 = a;
    print(mid + 1, b, out, in);
  } else if (y == 0) {
    pos0 = mid + 1;
    print(a, mid, out, in);
  } else if (x == s1) {
    pos1 = a;
    print(mid + 1, b, out + s1, in - s1);
  } else if (y == s2) {
    pos1 = mid + 1;
    print(a, mid, out + s2, in - s2);
  } else
    print(a, mid, out + y, in - y);
}
int main() {
  int in;
  cin >> n;
  cout << "? ";
  for (int i = 1; i <= n; ++i) cout << '0';
  cout << '\n';
  fflush(stdout);
  cin >> in;
  print(1, n, 0, in);
  cout << "! " << pos0 << ' ' << pos1 << '\n';
  cout << '\n';
  fflush(stdout);
  return 0;
}
