Input: John studied carefully Russian.
Output: 0