Input: Bill understands himself and Mary.
Output: 0