The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.
Public test cases
Input
My favourite number is 42. That is a 4 next to a 2 and nothing else. So, 420 is not valid. Just 42!
Output
2
Input
My favourite number is 42. That is a 4 next to a 2 and nothing else. So, 420 is not valid. Just 42!
Output
2
Input
See the Orion Nebula M42 through my telescope that my grandfather bought in 1942
Output
1
Input
See the Orion Nebula M42 through my telescope that my grandfather bought in 1942