atcoder#ABC279A. [ABC279A] wwwvvvvvv
[ABC279A] wwwvvvvvv
Score : points
Problem Statement
You are given a string consisting of v
and w
.
Print the number of "bottoms" in the string (see the figure at Sample Input/Output).
Constraints
- is a string consisting of
v
andw
. - The length of is between and , inclusive.
Input
The input is given from Standard Input in the following format:
Output
Print the answer as an integer.
vvwvw
7
The image above shows the seven "bottoms" in the string vvwvw
.
v
1
wwwvvvvvv
12