def print_ans():
    for i in field:
        print("".join(i))
    exit()
        
h,w,a,b=map(int,input().split())

field=[["0"]*w for i in range(h)]

if a==0:
    if b==0:
        print_ans()
    else:
        for i in range(b):
            field[i]=["1"]*w
        print_ans()
if b==0:
    for i in range(h):
        for j in range(a):
            field[i][j]="1"
    print_ans()
    
for i in range(h):
    for j in range(w):
        if i<b and j<a:
            field[i][j]="1"
        if i>=b and j>=a:
            field[i][j]="1"
print_ans() def print_ans():
    for i in field:
        print("".join(i))
    exit()
         print_ans for i in field:
        print("".join(i))
     i field print("".join(i)) print "".join(i) "".join "" join i exit() exit h,w,a,b=map(int,input().split()) h map(int,input().split()) map int input().split() ().split () input split w a b ["0"]*w for i in range(h) for i in range(h) i range(h) range h for i in range(h) ["0"]*w ["0"] "0" w field=[["0"]*w for i in range(h)] field [["0"]*w for i in range(h)] if a==0:
    if b==0:
        print_ans()
    else:
        for i in range(b):
            field[i]=["1"]*w
        print_ans() a==0 a 0 if b==0:
        print_ans()
    else:
        for i in range(b):
            field[i]=["1"]*w
        print_ans() b==0 b 0 print_ans() print_ans for i in range(b):
            field[i]=["1"]*w
         i range(b) range b field[i]=["1"]*w field[i] field i ["1"]*w ["1"] "1" w print_ans() print_ans if b==0:
    for i in range(h):
        for j in range(a):
            field[i][j]="1"
    print_ans()
     b==0 b 0 for i in range(h):
        for j in range(a):
            field[i][j]="1"
     i range(h) range h for j in range(a):
            field[i][j]="1"
     j range(a) range a field[i][j]="1" field[i][j] [i] field i j "1" print_ans() print_ans for i in range(h):
    for j in range(w):
        if i<b and j<a:
            field[i][j]="1"
        if i>=b and j>=a:
            field[i][j]="1" i range(h) range h for j in range(w):
        if i<b and j<a:
            field[i][j]="1"
        if i>=b and j>=a:
            field[i][j]="1" j range(w) range w if i<b and j<a:
            field[i][j]="1"
         i<b and j<a i<b i b j<a j a field[i][j]="1" field[i][j] [i] field i j "1" if i>=b and j>=a:
            field[i][j]="1" i>=b and j>=a i>=b i b j>=a j a field[i][j]="1" field[i][j] [i] field i j "1" print_ans() print_ans w,a,b=map(int,input().split()) map(int,input().split()) w b=map(int,input().split()) map(int,input().split()) b field=[["0"]*w for i in range(h)] [["0"]*w for i in range(h)] field def print_ans():
    for i in field:
        print("".join(i))
    exit()
         def print_ans():
    for i in field:
        print("".join(i))
    exit()
         print_ans h,w,a,b=map(int,input().split()) map(int,input().split()) h a,b=map(int,input().split()) map(int,input().split()) a
def print_ans():
    for i in field:
        print("".join(i))
    exit()
        
h,w,a,b=map(int,input().split())

field=[["0"]*w for i in range(h)]

if a==0:
    if b==0:
        print_ans()
    else:
        for i in range(b):
            field[i]=["1"]*w
        print_ans()
if b==0:
    for i in range(h):
        for j in range(a):
            field[i][j]="1"
    print_ans()
    
for i in range(h):
    for j in range(w):
        if i<b and j<a:
            field[i][j]="1"
        if i>=b and j>=a:
            field[i][j]="1"
print_ans()