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