import sys
input = sys.stdin.readline

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    H,W,A,B=MI()
    if H!=1 and W!=1:
        s=[[0]*W for _ in range(H)]
        for i in range(H):
            for j in range(W):
                if i<B and j<A:
                    s[i][j]=1
                elif i>=B and j>=A:
                    s[i][j]=1
                else:
                    pass
                
        for i in range(H):
            print(''.join(map(str, s[i])))
    else:
        if H==1:
            ans=([1]*A)+([0]*(W-A))
            print(''.join(map(str,ans)))
        else:
            for i in range(H):
                if i<B:
                    print(1)
                else:
                    print(0)
            

main() import sys sys input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline def I(): return int(input()) I def MI(): return map(int, input().split()) MI def LI(): return list(map(int, input().split())) LI def main():
    mod=10**9+7
    H,W,A,B=MI()
    if H!=1 and W!=1:
        s=[[0]*W for _ in range(H)]
        for i in range(H):
            for j in range(W):
                if i<B and j<A:
                    s[i][j]=1
                elif i>=B and j>=A:
                    s[i][j]=1
                else:
                    pass
                
        for i in range(H):
            print(''.join(map(str, s[i])))
    else:
        if H==1:
            ans=([1]*A)+([0]*(W-A))
            print(''.join(map(str,ans)))
        else:
            for i in range(H):
                if i<B:
                    print(1)
                else:
                    print(0)
             main mod=10**9+7 mod 10**9+7 10**9 10 9 7 H,W,A,B=MI() H MI() MI W A B if H!=1 and W!=1:
        s=[[0]*W for _ in range(H)]
        for i in range(H):
            for j in range(W):
                if i<B and j<A:
                    s[i][j]=1
                elif i>=B and j>=A:
                    s[i][j]=1
                else:
                    pass
                
        for i in range(H):
            print(''.join(map(str, s[i])))
    else:
        if H==1:
            ans=([1]*A)+([0]*(W-A))
            print(''.join(map(str,ans)))
        else:
            for i in range(H):
                if i<B:
                    print(1)
                else:
                    print(0)
             H!=1 and W!=1 H!=1 H 1 W!=1 W 1 [0]*W for _ in range(H) for _ in range(H) _ range(H) range H for _ in range(H) [0]*W [0] 0 W s=[[0]*W for _ in range(H)] s [[0]*W for _ in range(H)] for i in range(H):
            for j in range(W):
                if i<B and j<A:
                    s[i][j]=1
                elif i>=B and j>=A:
                    s[i][j]=1
                else:
                    pass
                
         i range(H) range H for j in range(W):
                if i<B and j<A:
                    s[i][j]=1
                elif i>=B and j>=A:
                    s[i][j]=1
                else:
                    pass
                
         j range(W) range W if i<B and j<A:
                    s[i][j]=1
                elif i>=B and j>=A:
                    s[i][j]=1
                else:
                    pass
                
         i<B and j<A i<B i B j<A j A s[i][j]=1 s[i][j] [i] s i j 1 elif i>=B and j>=A:
                    s[i][j]=1
                 i>=B and j>=A i>=B i B j>=A j A s[i][j]=1 s[i][j] [i] s i j 1 for i in range(H):
            print(''.join(map(str, s[i])))
     i range(H) range H print(''.join(map(str, s[i]))) print ''.join(map(str, s[i])) ''.join '' join map(str, s[i]) map str s[i] s i if H==1:
            ans=([1]*A)+([0]*(W-A))
            print(''.join(map(str,ans)))
        else:
            for i in range(H):
                if i<B:
                    print(1)
                else:
                    print(0)
             H==1 H 1 ans=([1]*A)+([0]*(W-A)) ans ([1]*A)+([0]*(W-A)) [1]*A [1] 1 A [0]*(W-A) [0] 0 W-A W A print(''.join(map(str,ans))) print ''.join(map(str,ans)) ''.join '' join map(str,ans) map str ans for i in range(H):
                if i<B:
                    print(1)
                else:
                    print(0)
             i range(H) range H if i<B:
                    print(1)
                else:
                    print(0)
             i<B i B print(1) print 1 print(0) print 0 main() main def I(): return int(input()) def I(): return int(input()) I def MI(): return map(int, input().split()) def MI(): return map(int, input().split()) MI def LI(): return list(map(int, input().split())) def LI(): return list(map(int, input().split())) LI input = sys.stdin.readline sys.stdin.readline input def main():
    mod=10**9+7
    H,W,A,B=MI()
    if H!=1 and W!=1:
        s=[[0]*W for _ in range(H)]
        for i in range(H):
            for j in range(W):
                if i<B and j<A:
                    s[i][j]=1
                elif i>=B and j>=A:
                    s[i][j]=1
                else:
                    pass
                
        for i in range(H):
            print(''.join(map(str, s[i])))
    else:
        if H==1:
            ans=([1]*A)+([0]*(W-A))
            print(''.join(map(str,ans)))
        else:
            for i in range(H):
                if i<B:
                    print(1)
                else:
                    print(0)
             def main():
    mod=10**9+7
    H,W,A,B=MI()
    if H!=1 and W!=1:
        s=[[0]*W for _ in range(H)]
        for i in range(H):
            for j in range(W):
                if i<B and j<A:
                    s[i][j]=1
                elif i>=B and j>=A:
                    s[i][j]=1
                else:
                    pass
                
        for i in range(H):
            print(''.join(map(str, s[i])))
    else:
        if H==1:
            ans=([1]*A)+([0]*(W-A))
            print(''.join(map(str,ans)))
        else:
            for i in range(H):
                if i<B:
                    print(1)
                else:
                    print(0)
             main
import sys
input = sys.stdin.readline

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))

def main():
    mod=10**9+7
    H,W,A,B=MI()
    if H!=1 and W!=1:
        s=[[0]*W for _ in range(H)]
        for i in range(H):
            for j in range(W):
                if i<B and j<A:
                    s[i][j]=1
                elif i>=B and j>=A:
                    s[i][j]=1
                else:
                    pass
                
        for i in range(H):
            print(''.join(map(str, s[i])))
    else:
        if H==1:
            ans=([1]*A)+([0]*(W-A))
            print(''.join(map(str,ans)))
        else:
            for i in range(H):
                if i<B:
                    print(1)
                else:
                    print(0)
            

main()
