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