h,w,a,b=map(int,input().split())
for _ in range(b):print("0"*a+"1"*(w-a))
for _ in range(h-b):print("1"*a+"0"*(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 for _ in range(b):print("0"*a+"1"*(w-a)) _ range(b) range b for _ in range(h-b):print("1"*a+"0"*(w-a)) _ range(h-b) range h-b h 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 b=map(int,input().split()) map(int,input().split()) b
h,w,a,b=map(int,input().split())
for _ in range(b):print("0"*a+"1"*(w-a))
for _ in range(h-b):print("1"*a+"0"*(w-a))