H, W, A, B = map(int, input().split())

if H == 1:
    ans = "1"*A + "0"*(W-A)
    print(ans)
    exit()

if W == 1:
    for _ in range(B):
        print(1)
    for _ in range(H-B):
        print(0)
    exit()

ans = [[0]*W for _ in range(H)]

for i in range(B):
    for j in range(A):
        ans[i][j] = 1

for i in range(B, H):
    for j in range(A, W):
        ans[i][j] = 1

for a in ans:
    t = list(map(str, a))
    print("".join(t)) H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B if H == 1:
    ans = "1"*A + "0"*(W-A)
    print(ans)
    exit() H == 1 H 1 ans = "1"*A + "0"*(W-A) ans "1"*A + "0"*(W-A) "1"*A "1" A "0"*(W-A) "0" W-A W A print(ans) print ans exit() exit if W == 1:
    for _ in range(B):
        print(1)
    for _ in range(H-B):
        print(0)
    exit() W == 1 W 1 for _ in range(B):
        print(1)
     _ range(B) range B print(1) print 1 for _ in range(H-B):
        print(0)
     _ range(H-B) range H-B H B print(0) print 0 exit() exit [0]*W for _ in range(H) for _ in range(H) _ range(H) range H for _ in range(H) [0]*W [0] 0 W ans = [[0]*W for _ in range(H)] ans [[0]*W for _ in range(H)] for i in range(B):
    for j in range(A):
        ans[i][j] = 1 i range(B) range B for j in range(A):
        ans[i][j] = 1 j range(A) range A ans[i][j] = 1 ans[i][j] [i] ans i j 1 for i in range(B, H):
    for j in range(A, W):
        ans[i][j] = 1 i range(B, H) range B H for j in range(A, W):
        ans[i][j] = 1 j range(A, W) range A W ans[i][j] = 1 ans[i][j] [i] ans i j 1 for a in ans:
    t = list(map(str, a))
    print("".join(t)) a ans t = list(map(str, a)) t list(map(str, a)) list map(str, a) map str a print("".join(t)) print "".join(t) "".join "" join t W, A, B = map(int, input().split()) map(int, input().split()) W t = list(map(str, a)) list(map(str, a)) t ans = [[0]*W for _ in range(H)] [[0]*W for _ in range(H)] ans ans = "1"*A + "0"*(W-A) "1"*A + "0"*(W-A) ans H, W, A, B = map(int, input().split()) map(int, input().split()) H A, B = map(int, input().split()) map(int, input().split()) A B = map(int, input().split()) map(int, input().split()) B
H, W, A, B = map(int, input().split())

if H == 1:
    ans = "1"*A + "0"*(W-A)
    print(ans)
    exit()

if W == 1:
    for _ in range(B):
        print(1)
    for _ in range(H-B):
        print(0)
    exit()

ans = [[0]*W for _ in range(H)]

for i in range(B):
    for j in range(A):
        ans[i][j] = 1

for i in range(B, H):
    for j in range(A, W):
        ans[i][j] = 1

for a in ans:
    t = list(map(str, a))
    print("".join(t))