← Home
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define _ 200005
ll n,m,x,l,r,z,_0,_1;
void que(ll l,ll r){
	cout<<"? ";
	for(ll i=1;i<=n;i++)cout<<(i>=l&&i<=r);
	cout<<'\n'<<flush;
}
int main(){
	ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
	cin>>n;l=1;r=n;que(0,0);cin>>m;
	while(_0==0||_1==0){
		z=(l+r)>>1;
		que(l,z);cin>>x;
		x=(m+z-l+1-x)/2;
		if(x==0)_0=l,l=z+1;
		else if(x==z-l+1)_1=l,l=z+1;
		else r=z;
	}
	cout<<"! "<<_0<<' '<<_1<<'\n';
}