Input: I sent Bill money to Mary to Sam.
Output: 0