H, W, A, B = map(int, input().split())
res1 = "1" * A + "0" * (W - A)
res2 = "0" * A + "1" * (W - A)
for i in range(H):
    if i < B:
        print(res1)
    else:
        print(res2) H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B res1 = "1" * A + "0" * (W - A) res1 "1" * A + "0" * (W - A) "1" * A "1" A "0" * (W - A) "0" W - A W A res2 = "0" * A + "1" * (W - A) res2 "0" * A + "1" * (W - A) "0" * A "0" A "1" * (W - A) "1" W - A W A for i in range(H):
    if i < B:
        print(res1)
    else:
        print(res2) i range(H) range H if i < B:
        print(res1)
    else:
        print(res2) i < B i B print(res1) print res1 print(res2) print res2 H, W, A, B = map(int, input().split()) map(int, input().split()) H W, A, B = map(int, input().split()) map(int, input().split()) W B = map(int, input().split()) map(int, input().split()) B res2 = "0" * A + "1" * (W - A) "0" * A + "1" * (W - A) res2 res1 = "1" * A + "0" * (W - A) "1" * A + "0" * (W - A) res1 A, B = map(int, input().split()) map(int, input().split()) A
H, W, A, B = map(int, input().split())
res1 = "1" * A + "0" * (W - A)
res2 = "0" * A + "1" * (W - A)
for i in range(H):
    if i < B:
        print(res1)
    else:
        print(res2)
