def two_int():
    N, K = map(int, input().split())
    return N,K

def one_int():
    return int(input())

def one_str():
    return input()

def many_int():
    return list(map(int, input().split()))

H,W,A,B = map(int, input().split())

for h in range(H):
    if h>=B:
        temp = "1"*A
        temp += "0"*(W-A)
    else:
        temp = "0"*A
        temp += "1"*(W-A)
    print(temp) def two_int():
    N, K = map(int, input().split())
    return N,K two_int N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K return N,K return N,K N K def one_int():
    return int(input()) one_int return int(input()) int(input()) int input() input def one_str():
    return input() one_str return input() input() input def many_int():
    return list(map(int, input().split())) many_int return list(map(int, input().split())) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split H,W,A,B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B for h in range(H):
    if h>=B:
        temp = "1"*A
        temp += "0"*(W-A)
    else:
        temp = "0"*A
        temp += "1"*(W-A)
    print(temp) h range(H) range H if h>=B:
        temp = "1"*A
        temp += "0"*(W-A)
    else:
        temp = "0"*A
        temp += "1"*(W-A)
     h>=B h B temp = "1"*A temp "1"*A "1" A temp += "0"*(W-A) temp "0"*(W-A) "0" W-A W A temp = "0"*A temp "0"*A "0" A temp += "1"*(W-A) temp "1"*(W-A) "1" W-A W A print(temp) print temp def one_int():
    return int(input()) def one_int():
    return int(input()) one_int temp += "1"*(W-A) "1"*(W-A) temp temp += "0"*(W-A) "0"*(W-A) temp def two_int():
    N, K = map(int, input().split())
    return N,K def two_int():
    N, K = map(int, input().split())
    return N,K two_int W,A,B = map(int, input().split()) map(int, input().split()) W def one_str():
    return input() def one_str():
    return input() one_str A,B = map(int, input().split()) map(int, input().split()) A H,W,A,B = map(int, input().split()) map(int, input().split()) H temp = "1"*A "1"*A temp def many_int():
    return list(map(int, input().split())) def many_int():
    return list(map(int, input().split())) many_int temp = "0"*A "0"*A temp B = map(int, input().split()) map(int, input().split()) B
def two_int():
    N, K = map(int, input().split())
    return N,K

def one_int():
    return int(input())

def one_str():
    return input()

def many_int():
    return list(map(int, input().split()))

H,W,A,B = map(int, input().split())

for h in range(H):
    if h>=B:
        temp = "1"*A
        temp += "0"*(W-A)
    else:
        temp = "0"*A
        temp += "1"*(W-A)
    print(temp)