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'.

Ex Input:
Tom told somebody that he wasn't sick.

Ex Output:
1


Ex Input:
It never occurred to Harvey because he is insensitive to other people's desires that, I might want to leave.

Ex Output:
0


Ex Input:
They said Tom would pay up, and pay up I'm sure everybody will tell you that his lawyers expect me to believe he did.

Ex Output:

1