import sys

def solve():
    input = sys.stdin.readline
    H, W, A, B = map(int, input().split())
    S = [[None] * W for _ in range(H)]
    for h in range(B):
        for w in range(A): S[h][w] = 0
        for w in range(A, W): S[h][w] = 1
    for h in range(B, H):
        for w in range(A): S[h][w] = 1
        for w in range(A, W): S[h][w] = 0
    for h in range(H):
        print("".join(map(str, S[h])))

    return 0

if __name__ == "__main__":
    solve() import sys sys def solve():
    input = sys.stdin.readline
    H, W, A, B = map(int, input().split())
    S = [[None] * W for _ in range(H)]
    for h in range(B):
        for w in range(A): S[h][w] = 0
        for w in range(A, W): S[h][w] = 1
    for h in range(B, H):
        for w in range(A): S[h][w] = 1
        for w in range(A, W): S[h][w] = 0
    for h in range(H):
        print("".join(map(str, S[h])))

    return 0 solve input = sys.stdin.readline input sys.stdin.readline sys.stdin sys stdin readline H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B [None] * W for _ in range(H) for _ in range(H) _ range(H) range H for _ in range(H) [None] * W [None] None W S = [[None] * W for _ in range(H)] S [[None] * W for _ in range(H)] for h in range(B):
        for w in range(A): S[h][w] = 0
        for w in range(A, W): S[h][w] = 1
     h range(B) range B for w in range(A): S[h][w] = 0
         w range(A) range A for w in range(A, W): S[h][w] = 1
     w range(A, W) range A W for h in range(B, H):
        for w in range(A): S[h][w] = 1
        for w in range(A, W): S[h][w] = 0
     h range(B, H) range B H for w in range(A): S[h][w] = 1
         w range(A) range A for w in range(A, W): S[h][w] = 0
     w range(A, W) range A W for h in range(H):
        print("".join(map(str, S[h])))

     h range(H) range H print("".join(map(str, S[h]))) print "".join(map(str, S[h])) "".join "" join map(str, S[h]) map str S[h] S h return 0 0 if __name__ == "__main__":
    solve() __name__ == "__main__" __name__ "__main__" solve() solve def solve():
    input = sys.stdin.readline
    H, W, A, B = map(int, input().split())
    S = [[None] * W for _ in range(H)]
    for h in range(B):
        for w in range(A): S[h][w] = 0
        for w in range(A, W): S[h][w] = 1
    for h in range(B, H):
        for w in range(A): S[h][w] = 1
        for w in range(A, W): S[h][w] = 0
    for h in range(H):
        print("".join(map(str, S[h])))

    return 0 def solve():
    input = sys.stdin.readline
    H, W, A, B = map(int, input().split())
    S = [[None] * W for _ in range(H)]
    for h in range(B):
        for w in range(A): S[h][w] = 0
        for w in range(A, W): S[h][w] = 1
    for h in range(B, H):
        for w in range(A): S[h][w] = 1
        for w in range(A, W): S[h][w] = 0
    for h in range(H):
        print("".join(map(str, S[h])))

    return 0 solve
import sys

def solve():
    input = sys.stdin.readline
    H, W, A, B = map(int, input().split())
    S = [[None] * W for _ in range(H)]
    for h in range(B):
        for w in range(A): S[h][w] = 0
        for w in range(A, W): S[h][w] = 1
    for h in range(B, H):
        for w in range(A): S[h][w] = 1
        for w in range(A, W): S[h][w] = 0
    for h in range(H):
        print("".join(map(str, S[h])))

    return 0

if __name__ == "__main__":
    solve()