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

s = 1
t = 0

for i in range(h):
    res = []
    if s == 1 and i >= b:
        s,t = t,s
    for j in range(w):
        if j < a:
            res.append(s)
        else:
            res.append(t)
    else:
        print(*res, sep="") h,w,a,b = map(int,input().split()) h map(int,input().split()) map int input().split() ().split () input split w a b s = 1 s 1 t = 0 t 0 for i in range(h):
    res = []
    if s == 1 and i >= b:
        s,t = t,s
    for j in range(w):
        if j < a:
            res.append(s)
        else:
            res.append(t)
    else:
        print(*res, sep="") i range(h) range h res = [] res [] if s == 1 and i >= b:
        s,t = t,s
     s == 1 and i >= b s == 1 s 1 i >= b i b s,t = t,s s t t s for j in range(w):
        if j < a:
            res.append(s)
        else:
            res.append(t)
    else:
        print(*res, sep="") j range(w) range w if j < a:
            res.append(s)
        else:
            res.append(t)
     j < a j a res.append(s) res.append res append s res.append(t) res.append res append t print(*res, sep="") print *res res sep="" sep "" a,b = map(int,input().split()) map(int,input().split()) a w,a,b = map(int,input().split()) map(int,input().split()) w t = t,s s t s = 1 1 s h,w,a,b = map(int,input().split()) map(int,input().split()) h t = 0 0 t b = map(int,input().split()) map(int,input().split()) b res = [] [] res s,t = t,s t s
h,w,a,b = map(int,input().split())

s = 1
t = 0

for i in range(h):
    res = []
    if s == 1 and i >= b:
        s,t = t,s
    for j in range(w):
        if j < a:
            res.append(s)
        else:
            res.append(t)
    else:
        print(*res, sep="")