Input: Tom washed, and Dick waxed, and Harry polished the car.
Output: 1