Input: Mary appreciates John and himself.
Output: 0