Input: Mary taught John linguistics.
Output: 1