h,w,a,b = map(int,input().split())
ans = [[0]*w for i in range(h)]
fl = True

for i in range(a):
    for j in range(b):
        ans[j][i] = 1
        
for i in range(w-a):
    for j in range(h-b):
        ans[b+j][a+i] = 1
        
for i in range(h):
    print(*ans[i],sep = "") h,w,a,b = map(int,input().split()) h map(int,input().split()) map int input().split() ().split () input split w a b [0]*w for i in range(h) for i in range(h) i range(h) range h for i in range(h) [0]*w [0] 0 w ans = [[0]*w for i in range(h)] ans [[0]*w for i in range(h)] fl = True fl True for i in range(a):
    for j in range(b):
        ans[j][i] = 1
         i range(a) range a for j in range(b):
        ans[j][i] = 1
         j range(b) range b ans[j][i] = 1 ans[j][i] [j] ans j i 1 for i in range(w-a):
    for j in range(h-b):
        ans[b+j][a+i] = 1
         i range(w-a) range w-a w a for j in range(h-b):
        ans[b+j][a+i] = 1
         j range(h-b) range h-b h b ans[b+j][a+i] = 1 ans[b+j][a+i] [b+j] ans b+j b j a+i a i 1 for i in range(h):
    print(*ans[i],sep = "") i range(h) range h print(*ans[i],sep = "") print *ans[i] ans[i] ans i sep = "" sep "" w,a,b = map(int,input().split()) map(int,input().split()) w b = map(int,input().split()) map(int,input().split()) b a,b = map(int,input().split()) map(int,input().split()) a fl = True True fl h,w,a,b = map(int,input().split()) map(int,input().split()) h ans = [[0]*w for i in range(h)] [[0]*w for i in range(h)] ans
h,w,a,b = map(int,input().split())
ans = [[0]*w for i in range(h)]
fl = True

for i in range(a):
    for j in range(b):
        ans[j][i] = 1
        
for i in range(w-a):
    for j in range(h-b):
        ans[b+j][a+i] = 1
        
for i in range(h):
    print(*ans[i],sep = "")