import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")


h,w,a,b = map(int, input().split())
ans = [None for _ in range(h)]
for i in range(h):
    if i<b:
        ans[i] = [0]*a + [1]*(w-a)
    else:
        ans[i] = [1]*a + [0]*(w-a)
write("\n".join("".join(map(str, item)) for item in ans)) import sys sys input = lambda : sys.stdin.readline().rstrip() input lambda : sys.stdin.readline().rstrip() sys.stdin.readline().rstrip() sys.stdin.readline().rstrip sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline rstrip sys.setrecursionlimit(max(1000, 10**9)) sys.setrecursionlimit sys setrecursionlimit max(1000, 10**9) max 1000 10**9 10 9 write = lambda x: sys.stdout.write(x+"\n") write lambda x: sys.stdout.write(x+"\n") sys.stdout.write(x+"\n") sys.stdout.write sys.stdout sys stdout write x+"\n" x "\n" x h,w,a,b = map(int, input().split()) h map(int, input().split()) map int input().split() ().split () input split w a b None for _ in range(h) for _ in range(h) _ range(h) range h for _ in range(h) None ans = [None for _ in range(h)] ans [None for _ in range(h)] for i in range(h):
    if i<b:
        ans[i] = [0]*a + [1]*(w-a)
    else:
        ans[i] = [1]*a + [0]*(w-a) i range(h) range h if i<b:
        ans[i] = [0]*a + [1]*(w-a)
    else:
        ans[i] = [1]*a + [0]*(w-a) i<b i b ans[i] = [0]*a + [1]*(w-a) ans[i] ans i [0]*a + [1]*(w-a) [0]*a [0] 0 a [1]*(w-a) [1] 1 w-a w a ans[i] = [1]*a + [0]*(w-a) ans[i] ans i [1]*a + [0]*(w-a) [1]*a [1] 1 a [0]*(w-a) [0] 0 w-a w a write("\n".join("".join(map(str, item)) for item in ans)) write "\n".join("".join(map(str, item)) for item in ans) "\n".join "\n" join "".join(map(str, item)) "".join "" join map(str, item) map str item 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 input = lambda : sys.stdin.readline().rstrip() lambda : sys.stdin.readline().rstrip() input ans = [None for _ in range(h)] [None for _ in range(h)] ans b = map(int, input().split()) map(int, input().split()) b a,b = map(int, input().split()) map(int, input().split()) a write = lambda x: sys.stdout.write(x+"\n") lambda x: sys.stdout.write(x+"\n") write
import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")


h,w,a,b = map(int, input().split())
ans = [None for _ in range(h)]
for i in range(h):
    if i<b:
        ans[i] = [0]*a + [1]*(w-a)
    else:
        ans[i] = [1]*a + [0]*(w-a)
write("\n".join("".join(map(str, item)) for item in ans))