def solve():
    for row in range(H):
        for col in range(W):
            if (row < B and col < A) or (B <= row and A <= col):
                print(0, end='')
            else:
                print(1, end='')
        print()

if __name__ == "__main__":
    H, W, A, B = map(int, input().split())
    solve() def solve():
    for row in range(H):
        for col in range(W):
            if (row < B and col < A) or (B <= row and A <= col):
                print(0, end='')
            else:
                print(1, end='')
        print() solve for row in range(H):
        for col in range(W):
            if (row < B and col < A) or (B <= row and A <= col):
                print(0, end='')
            else:
                print(1, end='')
        print() row range(H) range H for col in range(W):
            if (row < B and col < A) or (B <= row and A <= col):
                print(0, end='')
            else:
                print(1, end='')
         col range(W) range W if (row < B and col < A) or (B <= row and A <= col):
                print(0, end='')
            else:
                print(1, end='')
         (row < B and col < A) or (B <= row and A <= col) row < B and col < A row < B row B col < A col A B <= row and A <= col B <= row B row A <= col A col print(0, end='') print 0 end='' end '' print(1, end='') print 1 end='' end '' print() print if __name__ == "__main__":
    H, W, A, B = map(int, input().split())
    solve() __name__ == "__main__" __name__ "__main__" H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B solve() solve B = map(int, input().split()) map(int, input().split()) B W, A, B = map(int, input().split()) map(int, input().split()) W H, W, A, B = map(int, input().split()) map(int, input().split()) H A, B = map(int, input().split()) map(int, input().split()) A def solve():
    for row in range(H):
        for col in range(W):
            if (row < B and col < A) or (B <= row and A <= col):
                print(0, end='')
            else:
                print(1, end='')
        print() def solve():
    for row in range(H):
        for col in range(W):
            if (row < B and col < A) or (B <= row and A <= col):
                print(0, end='')
            else:
                print(1, end='')
        print() solve
def solve():
    for row in range(H):
        for col in range(W):
            if (row < B and col < A) or (B <= row and A <= col):
                print(0, end='')
            else:
                print(1, end='')
        print()

if __name__ == "__main__":
    H, W, A, B = map(int, input().split())
    solve()