h,w,a,b=map(int,input().split())
plus=[0 if i<a else 1 for i in range(w)]
minus=[1 if i<a else 0 for i in range(w)]

for i in range(h):
    if i<b:
        print(*plus,sep="")
    else:
        print(*minus,sep="") h,w,a,b=map(int,input().split()) h map(int,input().split()) map int input().split() ().split () input split w a b 0 if i<a else 1 for i in range(w) for i in range(w) i range(w) range w for i in range(w) 0 if i<a else 1 i<a i a 0 1 plus=[0 if i<a else 1 for i in range(w)] plus [0 if i<a else 1 for i in range(w)] 1 if i<a else 0 for i in range(w) for i in range(w) i range(w) range w for i in range(w) 1 if i<a else 0 i<a i a 1 0 minus=[1 if i<a else 0 for i in range(w)] minus [1 if i<a else 0 for i in range(w)] for i in range(h):
    if i<b:
        print(*plus,sep="")
    else:
        print(*minus,sep="") i range(h) range h if i<b:
        print(*plus,sep="")
    else:
        print(*minus,sep="") i<b i b print(*plus,sep="") print *plus plus sep="" sep "" print(*minus,sep="") print *minus minus sep="" sep "" 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 minus=[1 if i<a else 0 for i in range(w)] [1 if i<a else 0 for i in range(w)] minus a,b=map(int,input().split()) map(int,input().split()) a plus=[0 if i<a else 1 for i in range(w)] [0 if i<a else 1 for i in range(w)] plus
h,w,a,b=map(int,input().split())
plus=[0 if i<a else 1 for i in range(w)]
minus=[1 if i<a else 0 for i in range(w)]

for i in range(h):
    if i<b:
        print(*plus,sep="")
    else:
        print(*minus,sep="")