program: chapters = $$#chaptercount; pages = $$#pagecount; if chapters>#0 then divide(pages, chapters) fi