Input: The pen ran out of ink
The ink ran out of pen

Output: second