h,w,a,b = map(int,input().split())

for i in range(h):
    if i<b:
        for k in range(a):
            print(1,end='')
        for l in range(w-a):
            print(0,end='')
        print()
    if i>=b:
        for k in range(a):
            print(0,end='')
        for l in range(w-a):
            print(1,end='')
        print() h,w,a,b = map(int,input().split()) h map(int,input().split()) map int input().split() ().split () input split w a b for i in range(h):
    if i<b:
        for k in range(a):
            print(1,end='')
        for l in range(w-a):
            print(0,end='')
        print()
    if i>=b:
        for k in range(a):
            print(0,end='')
        for l in range(w-a):
            print(1,end='')
        print() i range(h) range h if i<b:
        for k in range(a):
            print(1,end='')
        for l in range(w-a):
            print(0,end='')
        print()
     i<b i b for k in range(a):
            print(1,end='')
         k range(a) range a print(1,end='') print 1 end='' end '' for l in range(w-a):
            print(0,end='')
         l range(w-a) range w-a w a print(0,end='') print 0 end='' end '' print() print if i>=b:
        for k in range(a):
            print(0,end='')
        for l in range(w-a):
            print(1,end='')
        print() i>=b i b for k in range(a):
            print(0,end='')
         k range(a) range a print(0,end='') print 0 end='' end '' for l in range(w-a):
            print(1,end='')
         l range(w-a) range w-a w a print(1,end='') print 1 end='' end '' print() print h,w,a,b = map(int,input().split()) map(int,input().split()) h b = map(int,input().split()) map(int,input().split()) b a,b = map(int,input().split()) map(int,input().split()) a w,a,b = map(int,input().split()) map(int,input().split()) w
h,w,a,b = map(int,input().split())

for i in range(h):
    if i<b:
        for k in range(a):
            print(1,end='')
        for l in range(w-a):
            print(0,end='')
        print()
    if i>=b:
        for k in range(a):
            print(0,end='')
        for l in range(w-a):
            print(1,end='')
        print()
