def main():
    h,w,a,b = map(int,input().split()) 
    x=[["0" for _ in range(w)] for _ in range(h)]
    for i in range(a):
        for j in range(b):
            x[j][i]="1"
    for i in range(w-a):
        for j in range(h-b):
            x[b+j][a+i]="1"
    for i in range(len(x)):
        print(''.join(x[i]))
if __name__ == "__main__":
    main() def main():
    h,w,a,b = map(int,input().split()) 
    x=[["0" for _ in range(w)] for _ in range(h)]
    for i in range(a):
        for j in range(b):
            x[j][i]="1"
    for i in range(w-a):
        for j in range(h-b):
            x[b+j][a+i]="1"
    for i in range(len(x)):
        print(''.join(x[i])) 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(w)] for _ in range(h) for _ in range(h) _ range(h) range h for _ in range(h) ["0" for _ in range(w)] x=[["0" for _ in range(w)] for _ in range(h)] x [["0" for _ in range(w)] for _ in range(h)] for i in range(a):
        for j in range(b):
            x[j][i]="1"
     i range(a) range a for j in range(b):
            x[j][i]="1"
     j range(b) range b x[j][i]="1" x[j][i] [j] x j i "1" for i in range(w-a):
        for j in range(h-b):
            x[b+j][a+i]="1"
     i range(w-a) range w-a w a for j in range(h-b):
            x[b+j][a+i]="1"
     j range(h-b) range h-b h b x[b+j][a+i]="1" x[b+j][a+i] [b+j] x b+j b j a+i a i "1" for i in range(len(x)):
        print(''.join(x[i])) i range(len(x)) range len(x) len x print(''.join(x[i])) print ''.join(x[i]) ''.join '' join x[i] x i if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    h,w,a,b = map(int,input().split()) 
    x=[["0" for _ in range(w)] for _ in range(h)]
    for i in range(a):
        for j in range(b):
            x[j][i]="1"
    for i in range(w-a):
        for j in range(h-b):
            x[b+j][a+i]="1"
    for i in range(len(x)):
        print(''.join(x[i])) def main():
    h,w,a,b = map(int,input().split()) 
    x=[["0" for _ in range(w)] for _ in range(h)]
    for i in range(a):
        for j in range(b):
            x[j][i]="1"
    for i in range(w-a):
        for j in range(h-b):
            x[b+j][a+i]="1"
    for i in range(len(x)):
        print(''.join(x[i])) main
def main():
    h,w,a,b = map(int,input().split()) 
    x=[["0" for _ in range(w)] for _ in range(h)]
    for i in range(a):
        for j in range(b):
            x[j][i]="1"
    for i in range(w-a):
        for j in range(h-b):
            x[b+j][a+i]="1"
    for i in range(len(x)):
        print(''.join(x[i]))
if __name__ == "__main__":
    main()