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

s = [["1"] * a + ["0"] * (w - a) for _ in range(b)] + [["0"] * a + ["1"] * (w - a) for _ in range(h - b)]

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

s = [["1"] * a + ["0"] * (w - a) for _ in range(b)] + [["0"] * a + ["1"] * (w - a) for _ in range(h - b)]

for x in s:
    print("".join(x))