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

He liked Anson.
0

The river was avoided by the rolling stone.
1

All the students who the papers which they submitted were lousy I'm not going to allow to register next term.

1