Input: Hats are for your head
Hats are for your feet

Output: second