import sys
from collections import Counter
def input(): return sys.stdin.readline().strip()
def mp(): return map(int,input().split())
def lmp(): return list(map(int,input().split()))

h,w,a,b=mp()
for i in range(b):
    print("1"*a+"0"*(w-a))
for i in range(h-b):
    print("0"*a+"1"*(w-a)) import sys sys from collections import Counter def input(): return sys.stdin.readline().strip() input def mp(): return map(int,input().split()) mp def lmp(): return list(map(int,input().split())) lmp h,w,a,b=mp() h mp() mp w a b for i in range(b):
    print("1"*a+"0"*(w-a)) i range(b) range b print("1"*a+"0"*(w-a)) print "1"*a+"0"*(w-a) "1"*a "1" a "0"*(w-a) "0" w-a w a for i in range(h-b):
    print("0"*a+"1"*(w-a)) i range(h-b) range h-b h b print("0"*a+"1"*(w-a)) print "0"*a+"1"*(w-a) "0"*a "0" a "1"*(w-a) "1" w-a w a a,b=mp() mp() a def lmp(): return list(map(int,input().split())) def lmp(): return list(map(int,input().split())) lmp w,a,b=mp() mp() w def input(): return sys.stdin.readline().strip() def input(): return sys.stdin.readline().strip() input def mp(): return map(int,input().split()) def mp(): return map(int,input().split()) mp b=mp() mp() b h,w,a,b=mp() mp() h
import sys
from collections import Counter
def input(): return sys.stdin.readline().strip()
def mp(): return map(int,input().split())
def lmp(): return list(map(int,input().split()))

h,w,a,b=mp()
for i in range(b):
    print("1"*a+"0"*(w-a))
for i in range(h-b):
    print("0"*a+"1"*(w-a))