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