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