#include <bits/stdc++.h>
using namespace std;
class Solution {
 public:
  void solve(std::istream& in, std::ostream& out) {
    int n;
    in >> n;
    int first = 1;
    auto ask = [&](int one_cnt) {
      out << "? " + std::string(one_cnt, first == 0 ? '0' : '1') +
                 std::string(n - one_cnt, first == 0 ? '1' : '0')
          << '\n';
      out.flush();
      int ret;
      in >> ret;
      return ret;
    };
    int cnt = ask(0);
    if (ask(1) < cnt)
      first = 1;
    else
      first = 0;
    if (first == 0) cnt = n - cnt;
    int l = 1, r = n;
    while (l < r) {
      auto m = l + (r - l) / 2;
      if (ask(m + 1) != cnt - m - 1)
        r = m;
      else
        l = m + 1;
    }
    if (first == 0)
      out << "! " << 1 << ' ' << l + 1 << '\n';
    else
      out << "! " << l + 1 << ' ' << 1 << '\n';
    out.flush();
  }
};
void solve(std::istream& in, std::ostream& out) {
  out << std::setprecision(12);
  Solution solution;
  solution.solve(in, out);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  istream& in = cin;
  ostream& out = cout;
  solve(in, out);
  return 0;
}
