h,w,a,b=map(int,input().split());x='01'
for i in range(h):print(x[i<b]*a+x[i>=b]*(w-a)) h,w,a,b=map(int,input().split()) h map(int,input().split()) map int input().split() ().split () input split w a b x='01' x '01' for i in range(h):print(x[i<b]*a+x[i>=b]*(w-a)) i range(h) range h x='01' '01' x w,a,b=map(int,input().split()) map(int,input().split()) w a,b=map(int,input().split()) map(int,input().split()) a h,w,a,b=map(int,input().split()) map(int,input().split()) h b=map(int,input().split()) map(int,input().split()) b
h,w,a,b=map(int,input().split());x='01'
for i in range(h):print(x[i<b]*a+x[i>=b]*(w-a))