Input: I remembered him having kissed Mary.
Output: 1