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

Example Input: Only Glasgow would he travel by train.
Example Output: 0

Example Input: The perception of the problem is quite thorough.
Example Output: 1

Example Input: Every student, who wears socks, is a swinger.
Example Output:
0