import numpy as np
*s,a,b=map(int, input().split());p=np.ones(s,dtype=np.int);p[:b,:a]=0;p[b:,a:]=0;print("\n".join("".join(q)for q in p.astype(str))) import numpy as np numpy *s,a,b=map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b *s s p=np.ones(s,dtype=np.int) p np.ones(s,dtype=np.int) np.ones np ones s dtype=np.int dtype np.int np int p[:b,:a]=0 p[:b,:a] p :b b 0 p[b:,a:]=0 p[b:,a:] p b: b 0 print("\n".join("".join(q)for q in p.astype(str))) print "\n".join("".join(q)for q in p.astype(str)) "\n".join "\n" join "".join(q) "".join "" join q a,b=map(int, input().split()) map(int, input().split()) a b=map(int, input().split()) map(int, input().split()) b p=np.ones(s,dtype=np.int) np.ones(s,dtype=np.int) p
import numpy as np
*s,a,b=map(int, input().split());p=np.ones(s,dtype=np.int);p[:b,:a]=0;p[b:,a:]=0;print("\n".join("".join(q)for q in p.astype(str)))