#include <bits/stdc++.h>
using namespace std;
#define int long long
bool F=false;
#define dbg(v) cout << "Line(" << __LINE__ << ") -> " << #v << " = " << (v) << endl; if (F){system("pause");};
signed main() {
//ios::sync_with_stdio(false);
//cin.tie(nullptr);
int n;
cin>>n;
vector<pair<int,int>> a(n);
string s = "";
for(int i=0; i<n; i++){
s+='1';
}
for(int i=1; i<=n; i++){
int z;
s[i-1]='0';
cout<<"? "<<i<<' '<<s<<endl;
s[i-1]='1';
cin>>z;
a[i-1]={z,i};
}
sort(a.rbegin(), a.rend());
/*for(int i=0; i<n; i++){
cout<<a[i].first<<endl;
}*/
for(int i=0; i<n; i++){
s[i]='0';
}
int i=0;
for(int j=0; j<n; ++j){
//dbg(j);
while(i<n-1 and n-a[i].first-1>i){
i=n-1-a[i].first;
}
//dbg(i);
while(j<=i){
s[a[j].second-1]='1';
j++;
}
//dbg(j);
cout<<"? "<<a[j].second<<' '<<s<<endl;
int resp;
cin>>resp;
if(resp){
while(i<=j){
s[a[i].second-1]='1';
i++;
}
i--;
}
}
cout<<"! "<<s<<endl;
}