Sympathetic cooling of polyatomic molecules with S-state atoms in a magnetic trap.