Input: What Tom said Al thought you wanted me to make Jack put on was this hat.
Output: 1