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