Input: he played in the beach with the waves
he played in the theater with the waves

Output: second