import numpy
h, w, a, b = map(int,input().split())
s = numpy.zeros([h,w],int)
for i in range(h):
    ans = []
    for j in range(w):
        if i < b and j < a:
            ans.append("1")
        elif i < b and a <= j:
            ans.append("0")
        elif b <= i and j < a:
            ans.append("0")
        else:
            ans.append("1")
    print("".join(ans))



 import numpy numpy h, w, a, b = map(int,input().split()) h map(int,input().split()) map int input().split() ().split () input split w a b s = numpy.zeros([h,w],int) s numpy.zeros([h,w],int) numpy.zeros numpy zeros [h,w] h w int for i in range(h):
    ans = []
    for j in range(w):
        if i < b and j < a:
            ans.append("1")
        elif i < b and a <= j:
            ans.append("0")
        elif b <= i and j < a:
            ans.append("0")
        else:
            ans.append("1")
    print("".join(ans)) i range(h) range h ans = [] ans [] for j in range(w):
        if i < b and j < a:
            ans.append("1")
        elif i < b and a <= j:
            ans.append("0")
        elif b <= i and j < a:
            ans.append("0")
        else:
            ans.append("1")
     j range(w) range w if i < b and j < a:
            ans.append("1")
        elif i < b and a <= j:
            ans.append("0")
        elif b <= i and j < a:
            ans.append("0")
        else:
            ans.append("1")
     i < b and j < a i < b i b j < a j a ans.append("1") ans.append ans append "1" elif i < b and a <= j:
            ans.append("0")
         i < b and a <= j i < b i b a <= j a j ans.append("0") ans.append ans append "0" elif b <= i and j < a:
            ans.append("0")
         b <= i and j < a b <= i b i j < a j a ans.append("0") ans.append ans append "0" ans.append("1") ans.append ans append "1" print("".join(ans)) print "".join(ans) "".join "" join ans ans = [] [] ans b = map(int,input().split()) map(int,input().split()) b w, a, b = map(int,input().split()) map(int,input().split()) w h, w, a, b = map(int,input().split()) map(int,input().split()) h a, b = map(int,input().split()) map(int,input().split()) a s = numpy.zeros([h,w],int) numpy.zeros([h,w],int) s
import numpy
h, w, a, b = map(int,input().split())
s = numpy.zeros([h,w],int)
for i in range(h):
    ans = []
    for j in range(w):
        if i < b and j < a:
            ans.append("1")
        elif i < b and a <= j:
            ans.append("0")
        elif b <= i and j < a:
            ans.append("0")
        else:
            ans.append("1")
    print("".join(ans))




