题目描述
Problem Statement
You are given a string S of length 12. How many occurrences of ZONes does it contain as contiguous substrings?
Input
Input is given from Standard Input in the following format:
S
Output
Print the answer.
Constraints
- S is a string of length 12 consisting of English letters.
Sample Input 1
abcdZONefghi
Sample Output 1
1
The 5-th through 8-th characters of S form a ZONe.
Sample Input 2
ZONeZONeZONe
Sample Output 2
3
Sample Input 3
helloAtZoner
Sample Output 3
0
The 8-th through 11-th characters of S form a Zone, which is not a ZONe.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分
样例输入
abcdZONefghi
样例输出
1