#include using namespace std; using Int = long long; const char newl = '\n'; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a void drop(const T &x){cout< vector read(size_t n){ vector ts(n); for(size_t i=0;i>ts[i]; return ts; } //INSERT ABOVE HERE signed main(){ cin.tie(0); ios::sync_with_stdio(0); auto valid=[&](Int n,Int m,Int p,Int k)->Int{ if(n+m==0) return k==0; if(n==0) return k==(p!=1); // all 1 if(m==0) return k==(p!=0); // all 0 if(n+m>n>>m>>k; if(!(valid(n-1,m,0,k) or valid(n,m-1,1,k))) drop(-1); Int p=2; while(n+m){ //cerr<0 and valid(n-1,m,0,k-(p==1))){ cout<<0; //cout<0 and valid(n,m-1,1,k-(p==0))){ cout<<1; //cout<