atcoder#ZONE2021A. UFO襲来

UFO襲来

Score : 100100 points

Problem Statement

You are given a string SS of length 1212. How many occurrences of ZONes does it contain as contiguous substrings?

Constraints

  • SS is a string of length 1212 consisting of English letters.

Input

Input is given from Standard Input in the following format:

SS

Output

Print the answer.

abcdZONefghi
1

The 55-th through 88-th characters of SS form a ZONe.

ZONeZONeZONe
3
helloAtZoner
0

The 88-th through 1111-th characters of SS form a Zone, which is not a ZONe.