atcoder#ZONE2021A. UFO襲来
UFO襲来
Score : points
Problem Statement
You are given a string of length . How many occurrences of ZONes does it contain as contiguous substrings?
Constraints
- is a string of length consisting of English letters.
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
abcdZONefghi
1
The -th through -th characters of form a ZONe.
ZONeZONeZONe
3
helloAtZoner
0
The -th through -th characters of form a Zone, which is not a ZONe.