Limits 1s, 512 MB

The king of never never land hates the word "never". So saying the word "never" is a crime there.
Every tourist who goes there to visit the country have to go through an exam.All tourist have to
answer some questions and then the army of never never land collect answer scripts of all tourist
and count number of time(s) they said "never".

The king become fed up with this process and he want to change it now.He ordered the army to count
number of time each tourist is using letter "n" in the answer script.Army of "Never Never Land"
think this task is very hard as well as boring for them.So they need an alternate way to do this.

Somehow king heard about your programming skill and kidnap you.And he wants you to implement a
program which takes a string as input and give number of time(s) given string contains the letter
"n".

For example:

weareofftoneverneverland

For this string, your output should be 3.As it contains "n" three times.

Now if you don't want to die implement this program. :p

Input

Input will contains a string S.S will contain only lowercase letter.Length of S
will be (|S|<= 100).You can safely assume that S will not contain any space.

Output

Your output should contain only one integer "X".Here X will be the number of time given string
contain the letter "n".

Sample

InputOutput
weareofftoneverneverland
3

Submit

Login to submit.

Statistics

99% Solution Ratio
hamza05Earliest, Apr '18
mdPialFastest, 0.0s
Mili290Lightest, 0 B
mdvirusShortest, 25B
Toph uses cookies. By continuing you agree to our Cookie Policy.