Input: Pamela is a woman's name
Pamela is a man's name

Output: second