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

for i in range(b):
    for j in range(a):
        li[i][j] = 1
for i in range(b,h):
    for j in range(a,w):
        li[i][j] = 1

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

for i in range(b):
    for j in range(a):
        li[i][j] = 1
for i in range(b,h):
    for j in range(a,w):
        li[i][j] = 1

for i in range(h):
    for j in range(w):
        print(li[i][j],end = '')
    print()
