def colchange(x):
    if x==1:
        return 0
    elif x==0:
        return 1
H,W,A,B=map(int,input().split())
table=[[0 for _ in range(W)] for _ in range(H)]
for i in range(H):
    for j in range(0,A):
        table[i][j]=colchange(table[i][j])
for i in range(0,B):
    for j in range(W):
        table[i][j]=colchange(table[i][j])
#print(table)
for i in range(H):
    print(*table[i],sep="") def colchange(x):
    if x==1:
        return 0
    elif x==0:
        return 1 colchange if x==1:
        return 0
    elif x==0:
        return 1 x==1 x 1 return 0 0 elif x==0:
        return 1 x==0 x 0 return 1 1 x x H,W,A,B=map(int,input().split()) H map(int,input().split()) map int input().split() ().split () input split W A B [0 for _ in range(W)] for _ in range(H) for _ in range(H) _ range(H) range H for _ in range(H) [0 for _ in range(W)] table=[[0 for _ in range(W)] for _ in range(H)] table [[0 for _ in range(W)] for _ in range(H)] for i in range(H):
    for j in range(0,A):
        table[i][j]=colchange(table[i][j]) i range(H) range H for j in range(0,A):
        table[i][j]=colchange(table[i][j]) j range(0,A) range 0 A table[i][j]=colchange(table[i][j]) table[i][j] [i] table i j colchange(table[i][j]) colchange table[i][j] [i] table i j for i in range(0,B):
    for j in range(W):
        table[i][j]=colchange(table[i][j])
#print(table) i range(0,B) range 0 B for j in range(W):
        table[i][j]=colchange(table[i][j])
#print(table) j range(W) range W table[i][j]=colchange(table[i][j]) table[i][j] [i] table i j colchange(table[i][j]) colchange table[i][j] [i] table i j for i in range(H):
    print(*table[i],sep="") i range(H) range H print(*table[i],sep="") print *table[i] table[i] table i sep="" sep "" H,W,A,B=map(int,input().split()) map(int,input().split()) H B=map(int,input().split()) map(int,input().split()) B def colchange(x):
    if x==1:
        return 0
    elif x==0:
        return 1 def colchange(x):
    if x==1:
        return 0
    elif x==0:
        return 1 colchange A,B=map(int,input().split()) map(int,input().split()) A table=[[0 for _ in range(W)] for _ in range(H)] [[0 for _ in range(W)] for _ in range(H)] table W,A,B=map(int,input().split()) map(int,input().split()) W
def colchange(x):
    if x==1:
        return 0
    elif x==0:
        return 1
H,W,A,B=map(int,input().split())
table=[[0 for _ in range(W)] for _ in range(H)]
for i in range(H):
    for j in range(0,A):
        table[i][j]=colchange(table[i][j])
for i in range(0,B):
    for j in range(W):
        table[i][j]=colchange(table[i][j])
#print(table)
for i in range(H):
    print(*table[i],sep="")
