H, W, A, B = map(int, input().split())
ans = []
for h in range(H):
    tmp = ""
    for w in range(W):
        if h < B:
            if w < A:
                tmp += "0"
            else:
                tmp += "1"
        else:
            if w < A:
                tmp += "1"
            else:
                tmp += "0"
    ans.append(tmp)
print("\n".join(ans)) H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B ans = [] ans [] for h in range(H):
    tmp = ""
    for w in range(W):
        if h < B:
            if w < A:
                tmp += "0"
            else:
                tmp += "1"
        else:
            if w < A:
                tmp += "1"
            else:
                tmp += "0"
    ans.append(tmp) h range(H) range H tmp = "" tmp "" for w in range(W):
        if h < B:
            if w < A:
                tmp += "0"
            else:
                tmp += "1"
        else:
            if w < A:
                tmp += "1"
            else:
                tmp += "0"
     w range(W) range W if h < B:
            if w < A:
                tmp += "0"
            else:
                tmp += "1"
        else:
            if w < A:
                tmp += "1"
            else:
                tmp += "0"
     h < B h B if w < A:
                tmp += "0"
            else:
                tmp += "1"
         w < A w A tmp += "0" tmp "0" tmp += "1" tmp "1" if w < A:
                tmp += "1"
            else:
                tmp += "0"
     w < A w A tmp += "1" tmp "1" tmp += "0" tmp "0" ans.append(tmp) ans.append ans append tmp print("\n".join(ans)) print "\n".join(ans) "\n".join "\n" join ans W, A, B = map(int, input().split()) map(int, input().split()) W tmp += "1" "1" tmp tmp += "0" "0" tmp tmp += "1" "1" tmp B = map(int, input().split()) map(int, input().split()) B tmp += "0" "0" tmp A, B = map(int, input().split()) map(int, input().split()) A H, W, A, B = map(int, input().split()) map(int, input().split()) H tmp = "" "" tmp ans = [] [] ans
H, W, A, B = map(int, input().split())
ans = []
for h in range(H):
    tmp = ""
    for w in range(W):
        if h < B:
            if w < A:
                tmp += "0"
            else:
                tmp += "1"
        else:
            if w < A:
                tmp += "1"
            else:
                tmp += "0"
    ans.append(tmp)
print("\n".join(ans))
