h,w,a,b = (int(i) for i in input().split())
for i in range(b): print("1"*a+"0"*(w-a))
for i in range(h-b): print("0"*a+"1"*(w-a)) int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i h,w,a,b = (int(i) for i in input().split()) h (int(i) for i in input().split()) w a b for i in range(b): print("1"*a+"0"*(w-a)) i range(b) range b for i in range(h-b): print("0"*a+"1"*(w-a)) i range(h-b) range h-b h b h,w,a,b = (int(i) for i in input().split()) (int(i) for i in input().split()) h b = (int(i) for i in input().split()) (int(i) for i in input().split()) b w,a,b = (int(i) for i in input().split()) (int(i) for i in input().split()) w a,b = (int(i) for i in input().split()) (int(i) for i in input().split()) a
h,w,a,b = (int(i) for i in input().split())
for i in range(b): print("1"*a+"0"*(w-a))
for i in range(h-b): print("0"*a+"1"*(w-a))