Input: John gave Tom a book a record.
Output: 0