How exactly DO they get the little M's onto M&Ms?

This question suddenly came to mind, and I thought I’d throw it out to the Doper community. Any ideas?

How do they get the M’s on M&M’s? (not revealed by an archive search for M&Ms, I just knew I’d seen it)