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

ans = []
for i in range(h):
    tmp = []
    if i < b:
        x = 0
    else:
        x = 1
    for j in range(w):
        if j < a:
            y = 0
            tmp.append(str(x^y))
        else:
            y = 1
            tmp.append(str(x^y))
    ans.append(tmp)

for l in ans:
    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 ans = [] ans [] for i in range(h):
    tmp = []
    if i < b:
        x = 0
    else:
        x = 1
    for j in range(w):
        if j < a:
            y = 0
            tmp.append(str(x^y))
        else:
            y = 1
            tmp.append(str(x^y))
    ans.append(tmp) i range(h) range h tmp = [] tmp [] if i < b:
        x = 0
    else:
        x = 1
     i < b i b x = 0 x 0 x = 1 x 1 for j in range(w):
        if j < a:
            y = 0
            tmp.append(str(x^y))
        else:
            y = 1
            tmp.append(str(x^y))
     j range(w) range w if j < a:
            y = 0
            tmp.append(str(x^y))
        else:
            y = 1
            tmp.append(str(x^y))
     j < a j a y = 0 y 0 tmp.append(str(x^y)) tmp.append tmp append str(x^y) str x^y x y y = 1 y 1 tmp.append(str(x^y)) tmp.append tmp append str(x^y) str x^y x y ans.append(tmp) ans.append ans append tmp for l in ans:
    print("".join(l)) l ans print("".join(l)) print "".join(l) "".join "" join l b = map(int, input().split()) map(int, input().split()) b tmp = [] [] tmp h, w, a, b = map(int, input().split()) map(int, input().split()) h ans = [] [] ans w, a, b = map(int, input().split()) map(int, input().split()) w a, b = map(int, input().split()) map(int, input().split()) a y = 0 0 y x = 1 1 x x = 0 0 x y = 1 1 y
h, w, a, b = map(int, input().split())

ans = []
for i in range(h):
    tmp = []
    if i < b:
        x = 0
    else:
        x = 1
    for j in range(w):
        if j < a:
            y = 0
            tmp.append(str(x^y))
        else:
            y = 1
            tmp.append(str(x^y))
    ans.append(tmp)

for l in ans:
    print("".join(l))