#!/usr/bin/env python3
import sys
input = sys.stdin.readline

h, w, a, b = map(int, input().split())
if a > w // 2 or b > h // 2:
    print("No")
    exit()
ans = [[0] * w for _ in range(h)]
for i in range(0, b):
    for j in range(0, a):
        ans[i][j] = 1
for i in range(b, h):
    for j in range(a, w):
        ans[i][j] = 1
for line in ans:
    print("".join([str(item) for item in line])) import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline h, w, a, b = map(int, input().split()) h map(int, input().split()) map int input().split() ().split () input split w a b if a > w // 2 or b > h // 2:
    print("No")
    exit() a > w // 2 or b > h // 2 a > w // 2 a w // 2 w 2 b > h // 2 b h // 2 h 2 print("No") print "No" exit() exit [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(0, b):
    for j in range(0, a):
        ans[i][j] = 1 i range(0, b) range 0 b for j in range(0, a):
        ans[i][j] = 1 j range(0, a) range 0 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 line in ans:
    print("".join([str(item) for item in line])) line ans str(item) for item in line for item in line item line for item in line str(item) str item print("".join([str(item) for item in line])) print "".join([str(item) for item in line]) "".join "" join [str(item) for item in line] w, a, b = map(int, input().split()) map(int, input().split()) w a, b = map(int, input().split()) map(int, input().split()) a ans = [[0] * w for _ in range(h)] [[0] * w for _ in range(h)] ans h, w, a, b = map(int, input().split()) map(int, input().split()) h b = map(int, input().split()) map(int, input().split()) b input = sys.stdin.readline sys.stdin.readline input
#!/usr/bin/env python3
import sys
input = sys.stdin.readline

h, w, a, b = map(int, input().split())
if a > w // 2 or b > h // 2:
    print("No")
    exit()
ans = [[0] * w for _ in range(h)]
for i in range(0, b):
    for j in range(0, a):
        ans[i][j] = 1
for i in range(b, h):
    for j in range(a, w):
        ans[i][j] = 1
for line in ans:
    print("".join([str(item) for item in line]))