Input: John knows whose book Mary bought and Tom talked.
Output: 0