h, w, a, b = map(int, input().split())

for i in range(h):
    for j in range(w):
        if i < (h-b):
            if j < (w-a):
                print(0, end="")
            else:
                print(1, end="")
        else:
            if j < (w-a):
                print(1, end="")
            else:
                print(0, end="")
    print('') h, w, a, b = map(int, input().split()) h map(int, input().split()) map int input().split() ().split () input split w a b for i in range(h):
    for j in range(w):
        if i < (h-b):
            if j < (w-a):
                print(0, end="")
            else:
                print(1, end="")
        else:
            if j < (w-a):
                print(1, end="")
            else:
                print(0, end="")
    print('') i range(h) range h for j in range(w):
        if i < (h-b):
            if j < (w-a):
                print(0, end="")
            else:
                print(1, end="")
        else:
            if j < (w-a):
                print(1, end="")
            else:
                print(0, end="")
     j range(w) range w if i < (h-b):
            if j < (w-a):
                print(0, end="")
            else:
                print(1, end="")
        else:
            if j < (w-a):
                print(1, end="")
            else:
                print(0, end="")
     i < (h-b) i h-b h b if j < (w-a):
                print(0, end="")
            else:
                print(1, end="")
         j < (w-a) j w-a w a print(0, end="") print 0 end="" end "" print(1, end="") print 1 end="" end "" if j < (w-a):
                print(1, end="")
            else:
                print(0, end="")
     j < (w-a) j w-a w a print(1, end="") print 1 end="" end "" print(0, end="") print 0 end="" end "" print('') print '' b = map(int, input().split()) map(int, input().split()) b w, a, b = map(int, input().split()) map(int, input().split()) w h, w, a, b = map(int, input().split()) map(int, input().split()) h a, b = map(int, input().split()) map(int, input().split()) a
h, w, a, b = map(int, input().split())

for i in range(h):
    for j in range(w):
        if i < (h-b):
            if j < (w-a):
                print(0, end="")
            else:
                print(1, end="")
        else:
            if j < (w-a):
                print(1, end="")
            else:
                print(0, end="")
    print('')