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