Input: i am jumping
I am flying

Output: second