H , W , A , B = map(int,input().split())
before = 1
after = 0
for i in range(H):
    ans_row = []
    if i == B:
        before = 0
        after = 1
    for j in range(W):
        if A <= j:
            ans_row.append(before)
        else:
            ans_row.append(after)
    print(*ans_row , sep = "") H , W , A , B = map(int,input().split()) H map(int,input().split()) map int input().split() ().split () input split W A B before = 1 before 1 after = 0 after 0 for i in range(H):
    ans_row = []
    if i == B:
        before = 0
        after = 1
    for j in range(W):
        if A <= j:
            ans_row.append(before)
        else:
            ans_row.append(after)
    print(*ans_row , sep = "") i range(H) range H ans_row = [] ans_row [] if i == B:
        before = 0
        after = 1
     i == B i B before = 0 before 0 after = 1 after 1 for j in range(W):
        if A <= j:
            ans_row.append(before)
        else:
            ans_row.append(after)
     j range(W) range W if A <= j:
            ans_row.append(before)
        else:
            ans_row.append(after)
     A <= j A j ans_row.append(before) ans_row.append ans_row append before ans_row.append(after) ans_row.append ans_row append after print(*ans_row , sep = "") print *ans_row ans_row sep = "" sep "" H , W , A , B = map(int,input().split()) map(int,input().split()) H W , A , B = map(int,input().split()) map(int,input().split()) W A , B = map(int,input().split()) map(int,input().split()) A after = 0 0 after before = 0 0 before after = 1 1 after B = map(int,input().split()) map(int,input().split()) B ans_row = [] [] ans_row before = 1 1 before
H , W , A , B = map(int,input().split())
before = 1
after = 0
for i in range(H):
    ans_row = []
    if i == B:
        before = 0
        after = 1
    for j in range(W):
        if A <= j:
            ans_row.append(before)
        else:
            ans_row.append(after)
    print(*ans_row , sep = "")