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


for i in range(h):
    if i<b:
        ansi = [0]*a+[1]*(w-a)
    else:
        ansi = [1]*a+[0]*(w-a)
    print(*ansi,sep='') 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:
        ansi = [0]*a+[1]*(w-a)
    else:
        ansi = [1]*a+[0]*(w-a)
    print(*ansi,sep='') i range(h) range h if i<b:
        ansi = [0]*a+[1]*(w-a)
    else:
        ansi = [1]*a+[0]*(w-a)
     i<b i b ansi = [0]*a+[1]*(w-a) ansi [0]*a+[1]*(w-a) [0]*a [0] 0 a [1]*(w-a) [1] 1 w-a w a ansi = [1]*a+[0]*(w-a) ansi [1]*a+[0]*(w-a) [1]*a [1] 1 a [0]*(w-a) [0] 0 w-a w a print(*ansi,sep='') print *ansi ansi sep='' sep '' ansi = [0]*a+[1]*(w-a) [0]*a+[1]*(w-a) ansi ansi = [1]*a+[0]*(w-a) [1]*a+[0]*(w-a) ansi w,a,b = map(int, input().split()) map(int, input().split()) w b = map(int, input().split()) map(int, input().split()) b h,w,a,b = map(int, input().split()) map(int, input().split()) h a,b = map(int, input().split()) map(int, input().split()) a
h,w,a,b = map(int, input().split())


for i in range(h):
    if i<b:
        ansi = [0]*a+[1]*(w-a)
    else:
        ansi = [1]*a+[0]*(w-a)
    print(*ansi,sep='')