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