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