h, w, a, b = list(map(int, input().split()))
for _ in range(b):
    print("1" * a + "0" * (w - a))
for _ in range(h - b):
    print("0" * a + "1" * (w - a)) h, w, a, b = list(map(int, input().split())) h list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split w a b for _ in range(b):
    print("1" * a + "0" * (w - a)) _ range(b) range b print("1" * a + "0" * (w - a)) print "1" * a + "0" * (w - a) "1" * a "1" a "0" * (w - a) "0" w - a w a for _ in range(h - b):
    print("0" * a + "1" * (w - a)) _ range(h - b) range h - b h b print("0" * a + "1" * (w - a)) print "0" * a + "1" * (w - a) "0" * a "0" a "1" * (w - a) "1" w - a w a h, w, a, b = list(map(int, input().split())) list(map(int, input().split())) h w, a, b = list(map(int, input().split())) list(map(int, input().split())) w a, b = list(map(int, input().split())) list(map(int, input().split())) a b = list(map(int, input().split())) list(map(int, input().split())) b
h, w, a, b = list(map(int, input().split()))
for _ in range(b):
    print("1" * a + "0" * (w - a))
for _ in range(h - b):
    print("0" * a + "1" * (w - a))