import sys

H, W, A, B = map(int, sys.stdin.readline().split())

for i in range(H):
    for j in range(W):
        if i < B:
            if j < A:
                print(0, end="")
            else:
                print(1, end="")
        else:
            if j < A:
                print(1, end="")
            else:
                print(0, end="")
    print("") import sys sys H, W, A, B = map(int, sys.stdin.readline().split()) H map(int, sys.stdin.readline().split()) map int sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split W A B for i in range(H):
    for j in range(W):
        if i < B:
            if j < A:
                print(0, end="")
            else:
                print(1, end="")
        else:
            if j < A:
                print(1, end="")
            else:
                print(0, end="")
    print("") i range(H) range H for j in range(W):
        if i < B:
            if j < A:
                print(0, end="")
            else:
                print(1, end="")
        else:
            if j < A:
                print(1, end="")
            else:
                print(0, end="")
     j range(W) range W if i < B:
            if j < A:
                print(0, end="")
            else:
                print(1, end="")
        else:
            if j < A:
                print(1, end="")
            else:
                print(0, end="")
     i < B i B if j < A:
                print(0, end="")
            else:
                print(1, end="")
         j < A j A print(0, end="") print 0 end="" end "" print(1, end="") print 1 end="" end "" if j < A:
                print(1, end="")
            else:
                print(0, end="")
     j < A j A print(1, end="") print 1 end="" end "" print(0, end="") print 0 end="" end "" print("") print "" H, W, A, B = map(int, sys.stdin.readline().split()) map(int, sys.stdin.readline().split()) H A, B = map(int, sys.stdin.readline().split()) map(int, sys.stdin.readline().split()) A B = map(int, sys.stdin.readline().split()) map(int, sys.stdin.readline().split()) B W, A, B = map(int, sys.stdin.readline().split()) map(int, sys.stdin.readline().split()) W
import sys

H, W, A, B = map(int, sys.stdin.readline().split())

for i in range(H):
    for j in range(W):
        if i < B:
            if j < A:
                print(0, end="")
            else:
                print(1, end="")
        else:
            if j < A:
                print(1, end="")
            else:
                print(0, end="")
    print("")