h, w, a, b = map(int, input().split())
ans = [0] * h
for i in range(b):
    ans[i] = '1'*a + '0'*(w-a)
for i in range(b, h):
    ans[i] = '0'*a + '1'*(w-a)

for i in range(h):
    print(ans[i]) h, w, a, b = map(int, input().split()) h map(int, input().split()) map int input().split() ().split () input split w a b ans = [0] * h ans [0] * h [0] 0 h for i in range(b):
    ans[i] = '1'*a + '0'*(w-a) i range(b) range b ans[i] = '1'*a + '0'*(w-a) ans[i] ans i '1'*a + '0'*(w-a) '1'*a '1' a '0'*(w-a) '0' w-a w a for i in range(b, h):
    ans[i] = '0'*a + '1'*(w-a) i range(b, h) range b h ans[i] = '0'*a + '1'*(w-a) ans[i] ans i '0'*a + '1'*(w-a) '0'*a '0' a '1'*(w-a) '1' w-a w a for i in range(h):
    print(ans[i]) i range(h) range h print(ans[i]) print ans[i] ans i a, b = map(int, input().split()) map(int, input().split()) a w, a, b = map(int, input().split()) map(int, input().split()) w ans = [0] * h [0] * h ans b = map(int, input().split()) map(int, input().split()) b h, w, a, b = map(int, input().split()) map(int, input().split()) h
h, w, a, b = map(int, input().split())
ans = [0] * h
for i in range(b):
    ans[i] = '1'*a + '0'*(w-a)
for i in range(b, h):
    ans[i] = '0'*a + '1'*(w-a)

for i in range(h):
    print(ans[i])