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

r1 = "0" * a + "1" * (w - a)
r2 = "1" * a + "0" * (w - a)

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

r1 = "0" * a + "1" * (w - a)
r2 = "1" * a + "0" * (w - a)

for _ in range(b):
    print(r1)
for _ in range(h - b):
    print(r2)
