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