H, W, A, B = map(int, input().split())
ans = [[1] * A + [0] * (W-A)] * (H-B) + [[0] * A + [1] * (W-A)] * B
print('\n'.join(''.join(str(e) for e in r) for r in ans)) H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B ans = [[1] * A + [0] * (W-A)] * (H-B) + [[0] * A + [1] * (W-A)] * B ans [[1] * A + [0] * (W-A)] * (H-B) + [[0] * A + [1] * (W-A)] * B [[1] * A + [0] * (W-A)] * (H-B) [[1] * A + [0] * (W-A)] [1] * A + [0] * (W-A) [1] * A [1] 1 A [0] * (W-A) [0] 0 W-A W A H-B H B [[0] * A + [1] * (W-A)] * B [[0] * A + [1] * (W-A)] [0] * A + [1] * (W-A) [0] * A [0] 0 A [1] * (W-A) [1] 1 W-A W A B print('\n'.join(''.join(str(e) for e in r) for r in ans)) print '\n'.join(''.join(str(e) for e in r) for r in ans) '\n'.join '\n' join ''.join(str(e) for e in r) ''.join '' join str(e) str e H, W, A, B = map(int, input().split()) map(int, input().split()) H W, A, B = map(int, input().split()) map(int, input().split()) W B = map(int, input().split()) map(int, input().split()) B A, B = map(int, input().split()) map(int, input().split()) A ans = [[1] * A + [0] * (W-A)] * (H-B) + [[0] * A + [1] * (W-A)] * B [[1] * A + [0] * (W-A)] * (H-B) + [[0] * A + [1] * (W-A)] * B ans
H, W, A, B = map(int, input().split())
ans = [[1] * A + [0] * (W-A)] * (H-B) + [[0] * A + [1] * (W-A)] * B
print('\n'.join(''.join(str(e) for e in r) for r in ans))
