#Lutece2317. Nico~Nico~Ni~
Nico~Nico~Ni~
Migrated from Lutece 2317 Nico~Nico~Ni~
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
As we all know, Nico Yazawa is the queen of kichiku in bilibili and no one can avoid being brainwashed by her NicoNicoNi~.If you don't, please click here.
Just now another video about Nico was uploaded to bilibili. As a counting bacteria, you want to count how many NicoNicoNi~ can be heard in the video.
More generally, you will be given a string only consisting of letters N
, i
, c
and o
, and you should calculate the number of substrings equal to NicoNicoNi
of .
Note that a substring of a string is a continuous segment of letters from . For example, tec
is a substring of Lutece
but tce
is not.
Input
A string only consisting of letters N
, i
, c
and o
, the length of will not exceed .
Output
Please print NicoNicoNi * n
, and is the number of substrings that equals to NicoNicoNi
of . (Please note the blank space!)
Samples
NicoNicoNicoNicoNico
NicoNicoNi * 3
Resources
电子科技大学第十一届 ACM 趣味程序设计竞赛