def solve():
    H,W,A,B=map(int,input().split())
    data=[[0]*W for i in range(H)]
    for i in range(B):
        for j in range(A):
            data[i][j]=1
    for i in range(B,H):
        for j in range(A,W):
            data[i][j]=1
    return data

data=solve()
for i in data:
    print(''.join(map(str,i))) def solve():
    H,W,A,B=map(int,input().split())
    data=[[0]*W for i in range(H)]
    for i in range(B):
        for j in range(A):
            data[i][j]=1
    for i in range(B,H):
        for j in range(A,W):
            data[i][j]=1
    return data solve 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 data=[[0]*W for i in range(H)] data [[0]*W for i in range(H)] for i in range(B):
        for j in range(A):
            data[i][j]=1
     i range(B) range B for j in range(A):
            data[i][j]=1
     j range(A) range A data[i][j]=1 data[i][j] [i] data i j 1 for i in range(B,H):
        for j in range(A,W):
            data[i][j]=1
     i range(B,H) range B H for j in range(A,W):
            data[i][j]=1
     j range(A,W) range A W data[i][j]=1 data[i][j] [i] data i j 1 return data data data=solve() data solve() solve for i in data:
    print(''.join(map(str,i))) i data print(''.join(map(str,i))) print ''.join(map(str,i)) ''.join '' join map(str,i) map str i def solve():
    H,W,A,B=map(int,input().split())
    data=[[0]*W for i in range(H)]
    for i in range(B):
        for j in range(A):
            data[i][j]=1
    for i in range(B,H):
        for j in range(A,W):
            data[i][j]=1
    return data def solve():
    H,W,A,B=map(int,input().split())
    data=[[0]*W for i in range(H)]
    for i in range(B):
        for j in range(A):
            data[i][j]=1
    for i in range(B,H):
        for j in range(A,W):
            data[i][j]=1
    return data solve data=solve() solve() data
def solve():
    H,W,A,B=map(int,input().split())
    data=[[0]*W for i in range(H)]
    for i in range(B):
        for j in range(A):
            data[i][j]=1
    for i in range(B,H):
        for j in range(A,W):
            data[i][j]=1
    return data

data=solve()
for i in data:
    print(''.join(map(str,i)))