h, w, a, b = map(int, input().split())

ans = [['0' for _ in range(w)] for _ in range(h)]
for i in range(b):
    for j in range(a):
        ans[i][j] = '1'

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

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

ans = [['0' for _ in range(w)] for _ in range(h)]
for i in range(b):
    for j in range(a):
        ans[i][j] = '1'

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

for x in ans:
    print(''.join(x))
