checkers pattern by SeeNoEvil

R,C=map(int,raw_input().split())
s=1
exec'print(" 1 0"*C)[s:s+2*C-1];s^=2;'*R

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

download

return top