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