Input: Bill understands Mary and himself.
Output: 0