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