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: Here is the snowball which I chased the boy who threw at our teacher.

Output: 0


Input: Consider Input: They said nobody would pay up, but I know a boy who did pay up.

Output: 1


Input: Consider Input: The more that John gets upset by them, the more that stories about him seem to show up in the news.


Output: 1