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: The man who I gave John this picture of was bald.

Output: 0


Input: Consider Input: If Ron knows whether to wear a tuxedo, and Caspar knows whether not to, do they know different things?

Output: 1


Input: Consider Input: John believes that him is sick.


Output: 0