h,w,a,b=map(int,input().split())
flag=0
for i in range(h):
    if 0<=i<b: flag=1
    else: flag=0
    for j in range(w):
        if flag:
            if 0<=j<a: print(0,end="")
            else: print(1,end="")
        else:
            if 0<=j<a: print(1,end="")
            else: print(0,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 flag=0 flag 0 for i in range(h):
    if 0<=i<b: flag=1
    else: flag=0
    for j in range(w):
        if flag:
            if 0<=j<a: print(0,end="")
            else: print(1,end="")
        else:
            if 0<=j<a: print(1,end="")
            else: print(0,end="")
    print() i range(h) range h if 0<=i<b: flag=1
    else: flag=0
     0<=i<b 0<=i 0 i b for j in range(w):
        if flag:
            if 0<=j<a: print(0,end="")
            else: print(1,end="")
        else:
            if 0<=j<a: print(1,end="")
            else: print(0,end="")
     j range(w) range w if flag:
            if 0<=j<a: print(0,end="")
            else: print(1,end="")
        else:
            if 0<=j<a: print(1,end="")
            else: print(0,end="")
     flag if 0<=j<a: print(0,end="")
            else: print(1,end="")
         0<=j<a 0<=j 0 j a if 0<=j<a: print(1,end="")
            else: print(0,end="")
     0<=j<a 0<=j 0 j a print() print w,a,b=map(int,input().split()) map(int,input().split()) w flag=0 0 flag 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())
flag=0
for i in range(h):
    if 0<=i<b: flag=1
    else: flag=0
    for j in range(w):
        if flag:
            if 0<=j<a: print(0,end="")
            else: print(1,end="")
        else:
            if 0<=j<a: print(1,end="")
            else: print(0,end="")
    print()