from sys import stdin
h,w,b,a = map(int,stdin.readline().rstrip().split())
li = []
for i in range(a):
    s = "0"*b+"1"*(w-b)
    li.append(s)
for j in range(h-a):
    s = "1"*b+"0"*(w-b)
    li.append(s)
for i in li:
    print(i) from sys import stdin h,w,b,a = map(int,stdin.readline().rstrip().split()) h map(int,stdin.readline().rstrip().split()) map int stdin.readline().rstrip().split() stdin.readline().rstrip().split stdin.readline().rstrip() stdin.readline().rstrip stdin.readline() stdin.readline stdin readline rstrip split w b a li = [] li [] for i in range(a):
    s = "0"*b+"1"*(w-b)
    li.append(s) i range(a) range a s = "0"*b+"1"*(w-b) s "0"*b+"1"*(w-b) "0"*b "0" b "1"*(w-b) "1" w-b w b li.append(s) li.append li append s for j in range(h-a):
    s = "1"*b+"0"*(w-b)
    li.append(s) j range(h-a) range h-a h a s = "1"*b+"0"*(w-b) s "1"*b+"0"*(w-b) "1"*b "1" b "0"*(w-b) "0" w-b w b li.append(s) li.append li append s for i in li:
    print(i) i li print(i) print i h,w,b,a = map(int,stdin.readline().rstrip().split()) map(int,stdin.readline().rstrip().split()) h w,b,a = map(int,stdin.readline().rstrip().split()) map(int,stdin.readline().rstrip().split()) w a = map(int,stdin.readline().rstrip().split()) map(int,stdin.readline().rstrip().split()) a li = [] [] li s = "1"*b+"0"*(w-b) "1"*b+"0"*(w-b) s b,a = map(int,stdin.readline().rstrip().split()) map(int,stdin.readline().rstrip().split()) b s = "0"*b+"1"*(w-b) "0"*b+"1"*(w-b) s
from sys import stdin
h,w,b,a = map(int,stdin.readline().rstrip().split())
li = []
for i in range(a):
    s = "0"*b+"1"*(w-b)
    li.append(s)
for j in range(h-a):
    s = "1"*b+"0"*(w-b)
    li.append(s)
for i in li:
    print(i)