int h[]={1,3,2,4}; { int i; int n,k;rd(n,k); rep(i,k){wt(1);} rep(i,n-k){wt(h[i%4]);} }