Input: She put on underwear, then pants.
She put on pants, then underwear.

Output: second