import numpy as np


def main():
    H, W, A, B = map(int, input().split())
    s = np.zeros((H, W), dtype=np.int64)
    s[:B, :A] = 1
    s[B:, A:] = 1
    
    for l in s:
        print(*l, sep='')


if __name__ == "__main__":
    main() import numpy as np numpy def main():
    H, W, A, B = map(int, input().split())
    s = np.zeros((H, W), dtype=np.int64)
    s[:B, :A] = 1
    s[B:, A:] = 1
    
    for l in s:
        print(*l, sep='') main H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B s = np.zeros((H, W), dtype=np.int64) s np.zeros((H, W), dtype=np.int64) np.zeros np zeros (H, W) H W dtype=np.int64 dtype np.int64 np int64 s[:B, :A] = 1 s[:B, :A] s :B B 1 s[B:, A:] = 1 s[B:, A:] s B: B 1 for l in s:
        print(*l, sep='') l s print(*l, sep='') print *l l sep='' sep '' if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    H, W, A, B = map(int, input().split())
    s = np.zeros((H, W), dtype=np.int64)
    s[:B, :A] = 1
    s[B:, A:] = 1
    
    for l in s:
        print(*l, sep='') def main():
    H, W, A, B = map(int, input().split())
    s = np.zeros((H, W), dtype=np.int64)
    s[:B, :A] = 1
    s[B:, A:] = 1
    
    for l in s:
        print(*l, sep='') main
import numpy as np


def main():
    H, W, A, B = map(int, input().split())
    s = np.zeros((H, W), dtype=np.int64)
    s[:B, :A] = 1
    s[B:, A:] = 1
    
    for l in s:
        print(*l, sep='')


if __name__ == "__main__":
    main()