H,W,A,B = map(int,input().split())
for j in range(H):
    if j < B:
        for i in range(W):
            if i < A:
                print(0,end="")
            else:
                print(1,end="")
        print()
    else:
        for i in range(W):
            if i < 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 j in range(H):
    if j < B:
        for i in range(W):
            if i < A:
                print(0,end="")
            else:
                print(1,end="")
        print()
    else:
        for i in range(W):
            if i < A:
                print(1,end="")
            else:
                print(0,end="")
        print() j range(H) range H if j < B:
        for i in range(W):
            if i < A:
                print(0,end="")
            else:
                print(1,end="")
        print()
    else:
        for i in range(W):
            if i < A:
                print(1,end="")
            else:
                print(0,end="")
        print() j < B j B for i in range(W):
            if i < A:
                print(0,end="")
            else:
                print(1,end="")
         i range(W) range W if i < A:
                print(0,end="")
            else:
                print(1,end="")
         i < A i A print(0,end="") print 0 end="" end "" print(1,end="") print 1 end="" end "" print() print for i in range(W):
            if i < A:
                print(1,end="")
            else:
                print(0,end="")
         i range(W) range W if i < A:
                print(1,end="")
            else:
                print(0,end="")
         i < A i A print(1,end="") print 1 end="" end "" print(0,end="") print 0 end="" end "" print() print H,W,A,B = map(int,input().split()) map(int,input().split()) H B = map(int,input().split()) map(int,input().split()) B A,B = map(int,input().split()) map(int,input().split()) A W,A,B = map(int,input().split()) map(int,input().split()) W
H,W,A,B = map(int,input().split())
for j in range(H):
    if j < B:
        for i in range(W):
            if i < A:
                print(0,end="")
            else:
                print(1,end="")
        print()
    else:
        for i in range(W):
            if i < A:
                print(1,end="")
            else:
                print(0,end="")
        print()