import sys
#input = sys.stdin.buffer.readline

def main():
    H,W,A,B = map(int,input().split())
    u = ["0" for _ in range(A)] + ["1" for _ in range(W-A)]
    _u = ["1" for _ in range(A)] + ["0" for _ in range(W-A)]
    
    for _ in range(B):
        print("".join(u))
    for _ in range(H-B):
        print("".join(_u))

if __name__ == "__main__":
    main() import sys sys def main():
    H,W,A,B = map(int,input().split())
    u = ["0" for _ in range(A)] + ["1" for _ in range(W-A)]
    _u = ["1" for _ in range(A)] + ["0" for _ in range(W-A)]
    
    for _ in range(B):
        print("".join(u))
    for _ in range(H-B):
        print("".join(_u)) main H,W,A,B = map(int,input().split()) H map(int,input().split()) map int input().split() ().split () input split W A B "0" for _ in range(A) for _ in range(A) _ range(A) range A for _ in range(A) "0" u = ["0" for _ in range(A)] + ["1" for _ in range(W-A)] u ["0" for _ in range(A)] + ["1" for _ in range(W-A)] ["0" for _ in range(A)] ["1" for _ in range(W-A)] "1" for _ in range(A) for _ in range(A) _ range(A) range A for _ in range(A) "1" _u = ["1" for _ in range(A)] + ["0" for _ in range(W-A)] _u ["1" for _ in range(A)] + ["0" for _ in range(W-A)] ["1" for _ in range(A)] ["0" for _ in range(W-A)] for _ in range(B):
        print("".join(u))
     _ range(B) range B print("".join(u)) print "".join(u) "".join "" join u for _ in range(H-B):
        print("".join(_u)) _ range(H-B) range H-B H B print("".join(_u)) print "".join(_u) "".join "" join _u if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    H,W,A,B = map(int,input().split())
    u = ["0" for _ in range(A)] + ["1" for _ in range(W-A)]
    _u = ["1" for _ in range(A)] + ["0" for _ in range(W-A)]
    
    for _ in range(B):
        print("".join(u))
    for _ in range(H-B):
        print("".join(_u)) def main():
    H,W,A,B = map(int,input().split())
    u = ["0" for _ in range(A)] + ["1" for _ in range(W-A)]
    _u = ["1" for _ in range(A)] + ["0" for _ in range(W-A)]
    
    for _ in range(B):
        print("".join(u))
    for _ in range(H-B):
        print("".join(_u)) main
import sys
#input = sys.stdin.buffer.readline

def main():
    H,W,A,B = map(int,input().split())
    u = ["0" for _ in range(A)] + ["1" for _ in range(W-A)]
    _u = ["1" for _ in range(A)] + ["0" for _ in range(W-A)]
    
    for _ in range(B):
        print("".join(u))
    for _ in range(H-B):
        print("".join(_u))

if __name__ == "__main__":
    main()
