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