h,w,a,b = map(int,input().split())
ans = [[0]*w for i in range(h)]

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

for i in range(h):
    if i >= h-b:
        for j in range(w-a,w):
            ans[i][j] = 1
    else:
        for j in range(w-a):
            ans[i][j] = 1
for i in ans:
    print(*i,sep="")