You will be given a sentence. Check whether the sentence is grammatically correct and is meaningful. If the sentence is grammatically correct, then answer with '1', otherwise answer with '0'.

Input: Consider Input: All Mr Collins has done is have praised Lady de Bourg.

Output: 0


Input: Consider Input: Americans have paying income tax ever since 1913.

Output: 0


Input: Consider Input: The worm wriggled onto the carpet.


Output: 1