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

for i in range(h-b):
    for j in range(a):
        ans[i][j] = 1

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

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

for i in range(h-b):
    for j in range(a):
        ans[i][j] = 1

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

for row in ans:
    print(*row, sep='')
