File standardInput readLine split map(asNumber)do(for(i,1,first,for(j,2,last,write(j=(i+j)%2," "));writeln(1-j)))