input:
  (sorted program) (site geometry)