Y,X:stdin.get_s(9).split(" ").to_a;Y.to_i.times{|y|X.to_i.times.map(|x|x+y+1&1).join(" ").p;}