y,x=map(range,map(int,raw_input().split())) for j in y:print" ".join(`~i+j&1`for i in x)