Input: he played chess
he ate chess

Output: second