Input: Tom tends for Mary to avoid confrontations.
Output: 0