h, w, a, b = map(int, input().split())
result = ["0" * a + "1" * (w-a) for _ in range(b)] + ["1" * a + "0" * (w-a) for _ in range(h-b)]
for r in result:
    print(r) h, w, a, b = map(int, input().split()) h map(int, input().split()) map int input().split() ().split () input split w a b "0" * a + "1" * (w-a) for _ in range(b) for _ in range(b) _ range(b) range b for _ in range(b) "0" * a + "1" * (w-a) "0" * a "0" a "1" * (w-a) "1" w-a w a result = ["0" * a + "1" * (w-a) for _ in range(b)] + ["1" * a + "0" * (w-a) for _ in range(h-b)] result ["0" * a + "1" * (w-a) for _ in range(b)] + ["1" * a + "0" * (w-a) for _ in range(h-b)] ["0" * a + "1" * (w-a) for _ in range(b)] ["1" * a + "0" * (w-a) for _ in range(h-b)] for r in result:
    print(r) r result print(r) print r result = ["0" * a + "1" * (w-a) for _ in range(b)] + ["1" * a + "0" * (w-a) for _ in range(h-b)] ["0" * a + "1" * (w-a) for _ in range(b)] + ["1" * a + "0" * (w-a) for _ in range(h-b)] result h, w, a, b = map(int, input().split()) map(int, input().split()) h a, b = map(int, input().split()) map(int, input().split()) a 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())
result = ["0" * a + "1" * (w-a) for _ in range(b)] + ["1" * a + "0" * (w-a) for _ in range(h-b)]
for r in result:
    print(r)