Input: What Mary gave was a book to John.
Output: 0