h,w,a,b=map(int,input().split())
l=[['0']*w for _ in range(h)]
for i in range(b):
    for j in range(a):
        l[i][j]='1'
for i in range(b,h):
    for j in range(a,w):
        l[i][j]='1'
for i in range(h):
    print("".join(map(str,l[i]))) 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 _ in range(h) for _ in range(h) _ range(h) range h for _ in range(h) ['0']*w ['0'] '0' w l=[['0']*w for _ in range(h)] l [['0']*w for _ in range(h)] for i in range(b):
    for j in range(a):
        l[i][j]='1' i range(b) range b for j in range(a):
        l[i][j]='1' j range(a) range a l[i][j]='1' l[i][j] [i] l i j '1' for i in range(b,h):
    for j in range(a,w):
        l[i][j]='1' i range(b,h) range b h for j in range(a,w):
        l[i][j]='1' j range(a,w) range a w l[i][j]='1' l[i][j] [i] l i j '1' for i in range(h):
    print("".join(map(str,l[i]))) i range(h) range h print("".join(map(str,l[i]))) print "".join(map(str,l[i])) "".join "" join map(str,l[i]) map str l[i] l i w,a,b=map(int,input().split()) map(int,input().split()) w b=map(int,input().split()) map(int,input().split()) b a,b=map(int,input().split()) map(int,input().split()) a h,w,a,b=map(int,input().split()) map(int,input().split()) h l=[['0']*w for _ in range(h)] [['0']*w for _ in range(h)] l
h,w,a,b=map(int,input().split())
l=[['0']*w for _ in range(h)]
for i in range(b):
    for j in range(a):
        l[i][j]='1'
for i in range(b,h):
    for j in range(a,w):
        l[i][j]='1'
for i in range(h):
    print("".join(map(str,l[i])))