2021 US Open, Bronze, Problem 2: Acowdemia II

Problem link: USACO
The second sample input seems incorrect. I’m posting it here to make sure it’s a typo. Is there any way to get it changed?

Okay, never mind. I think I read the problem wrong - you’re supposed to do the output in the same order of the input, not in alphabetical, right?

I think so, yes.