for(p=print;n=readline();p(W=n/4|n/2&C,0,Y=n/4|!C),p(X=n/4&n/2,C,X),p(Y,0,W),p())C=n&1

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page