g,r,a,b=map(int,input().split())
l=["".join(["0" if (retu<a and gyou<b)or(retu>=a and gyou>=b) else "1" for retu in range(r)])for gyou in range(g)]
print(*l,sep="\n") g,r,a,b=map(int,input().split()) g map(int,input().split()) map int input().split() ().split () input split r a b "".join(["0" if (retu<a and gyou<b)or(retu>=a and gyou>=b) else "1" for retu in range(r)])for gyou in range(g) for gyou in range(g) gyou range(g) range g for gyou in range(g) "".join(["0" if (retu<a and gyou<b)or(retu>=a and gyou>=b) else "1" for retu in range(r)]) "".join "" join ["0" if (retu<a and gyou<b)or(retu>=a and gyou>=b) else "1" for retu in range(r)] l=["".join(["0" if (retu<a and gyou<b)or(retu>=a and gyou>=b) else "1" for retu in range(r)])for gyou in range(g)] l ["".join(["0" if (retu<a and gyou<b)or(retu>=a and gyou>=b) else "1" for retu in range(r)])for gyou in range(g)] print(*l,sep="\n") print *l l sep="\n" sep "\n" g,r,a,b=map(int,input().split()) map(int,input().split()) g l=["".join(["0" if (retu<a and gyou<b)or(retu>=a and gyou>=b) else "1" for retu in range(r)])for gyou in range(g)] ["".join(["0" if (retu<a and gyou<b)or(retu>=a and gyou>=b) else "1" for retu in range(r)])for gyou in range(g)] l a,b=map(int,input().split()) map(int,input().split()) a b=map(int,input().split()) map(int,input().split()) b r,a,b=map(int,input().split()) map(int,input().split()) r
g,r,a,b=map(int,input().split())
l=["".join(["0" if (retu<a and gyou<b)or(retu>=a and gyou>=b) else "1" for retu in range(r)])for gyou in range(g)]
print(*l,sep="\n")