h,w,a,b = map(int,input().split())
ans = [[0 for j in range(w)] for i in range(h)]
for i in range(h):
    for j in range(w):
        if i<b:
            if j>=a:
                ans[i][j] = 1
        else:
            if j<a:
                ans[i][j] = 1

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

for i in ans:
    print(''.join(map(str,i)))
