Input (grade 8): The millipedes have glands that produce hydrogen cyanide to protect them from predators, a fact advertised by their aposematic color. Because they produce cyanide, they smell like almonds.
Output (grade 4): They have glands that release cyanide to protect them from predators.