H, W, A, B = map(int, input().split())
ans = [0]*H
for i in range(H):
  if i < B:
    ans[i] = "0"*A + "1"*(W-A)
  else:
    ans[i] = "1"*A + "0"*(W-A)
print(*ans, sep="\n") H, W, A, B = map(int, input().split()) H map(int, input().split()) map int input().split() ().split () input split W A B ans = [0]*H ans [0]*H [0] 0 H for i in range(H):
  if i < B:
    ans[i] = "0"*A + "1"*(W-A)
  else:
    ans[i] = "1"*A + "0"*(W-A) i range(H) range H if i < B:
    ans[i] = "0"*A + "1"*(W-A)
  else:
    ans[i] = "1"*A + "0"*(W-A) i < B i B ans[i] = "0"*A + "1"*(W-A) ans[i] ans i "0"*A + "1"*(W-A) "0"*A "0" A "1"*(W-A) "1" W-A W A ans[i] = "1"*A + "0"*(W-A) ans[i] ans i "1"*A + "0"*(W-A) "1"*A "1" A "0"*(W-A) "0" W-A W A print(*ans, sep="\n") print *ans ans sep="\n" sep "\n" 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 ans = [0]*H [0]*H ans H, W, A, B = map(int, input().split()) map(int, input().split()) H
H, W, A, B = map(int, input().split())
ans = [0]*H
for i in range(H):
  if i < B:
    ans[i] = "0"*A + "1"*(W-A)
  else:
    ans[i] = "1"*A + "0"*(W-A)
print(*ans, sep="\n")