def LI():
    return list(map(int, input().split()))


H, W, A, B = LI()
S = "1"*A+"0"*(W-A)
for _ in range(B):
    print(S)
S = "0"*A+"1"*(W-A)
for _ in range(H-B):
    print(S) def LI():
    return list(map(int, input().split())) LI return list(map(int, input().split())) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split H, W, A, B = LI() H LI() LI W A B S = "1"*A+"0"*(W-A) S "1"*A+"0"*(W-A) "1"*A "1" A "0"*(W-A) "0" W-A W A for _ in range(B):
    print(S) _ range(B) range B print(S) print S S = "0"*A+"1"*(W-A) S "0"*A+"1"*(W-A) "0"*A "0" A "1"*(W-A) "1" W-A W A for _ in range(H-B):
    print(S) _ range(H-B) range H-B H B print(S) print S A, B = LI() LI() A S = "0"*A+"1"*(W-A) "0"*A+"1"*(W-A) S B = LI() LI() B H, W, A, B = LI() LI() H def LI():
    return list(map(int, input().split())) def LI():
    return list(map(int, input().split())) LI S = "1"*A+"0"*(W-A) "1"*A+"0"*(W-A) S W, A, B = LI() LI() W
def LI():
    return list(map(int, input().split()))


H, W, A, B = LI()
S = "1"*A+"0"*(W-A)
for _ in range(B):
    print(S)
S = "0"*A+"1"*(W-A)
for _ in range(H-B):
    print(S)
