Input: Mary taught linguistics to John.
Output: 1