Input: Mary believed his to have loved her.
Output: 0