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

ans = [['0']*w for i in range(h)]
for y in range(h):
    for x in range(w):
        if x<a and y<b:
            ans[y][x]="1"
        elif x>=a and y>=b:
            ans[y][x]="1"

for a in ans:
    print("".join(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 ['0']*w for i in range(h) for i in range(h) i range(h) range h for i in range(h) ['0']*w ['0'] '0' w ans = [['0']*w for i in range(h)] ans [['0']*w for i in range(h)] for y in range(h):
    for x in range(w):
        if x<a and y<b:
            ans[y][x]="1"
        elif x>=a and y>=b:
            ans[y][x]="1" y range(h) range h for x in range(w):
        if x<a and y<b:
            ans[y][x]="1"
        elif x>=a and y>=b:
            ans[y][x]="1" x range(w) range w if x<a and y<b:
            ans[y][x]="1"
        elif x>=a and y>=b:
            ans[y][x]="1" x<a and y<b x<a x a y<b y b ans[y][x]="1" ans[y][x] [y] ans y x "1" elif x>=a and y>=b:
            ans[y][x]="1" x>=a and y>=b x>=a x a y>=b y b ans[y][x]="1" ans[y][x] [y] ans y x "1" for a in ans:
    print("".join(a)) a ans print("".join(a)) print "".join(a) "".join "" join a b = list(map(int,input().split())) list(map(int,input().split())) b ans = [['0']*w for i in range(h)] [['0']*w for i in range(h)] ans w,a,b = list(map(int,input().split())) list(map(int,input().split())) w h,w,a,b = list(map(int,input().split())) list(map(int,input().split())) h a,b = list(map(int,input().split())) list(map(int,input().split())) a
h,w,a,b = list(map(int,input().split()))

ans = [['0']*w for i in range(h)]
for y in range(h):
    for x in range(w):
        if x<a and y<b:
            ans[y][x]="1"
        elif x>=a and y>=b:
            ans[y][x]="1"

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