foreach {y x i} [gets stdin]\ 0 {while {~[incr y -1]} {puts [string ra [string repe {0 1 } 32] [incr i 2] [expr $i+$x*2-2]]}}