{ll @a,@b,@c;ll m=min(a,b)*2,x=a-c/2,y=b-c/2;if((!x&&!y)||x<0||y<0||(!c&&m))wt(-1);else if(!m){rep(i,a+b)wtN(i>=a);}else if(m==c){rep(i,c)wtN((i+(b>a))%2);rep(max(x,y))wtN(b>a);}else{rep(x)wtN(0);rep(i,1,c)wtN(i%2);rep(y)wtN(1);if(!(c%2))wt(0);}}