#abc279a. [abc279_a]wwwvvvvvv
[abc279_a]wwwvvvvvv
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.
Sample Input 1
vvwvw
Sample Output 1
7
The image above shows the seven "bottoms" in the string vvwvw
.
Sample Input 2
v
Sample Output 2
1
Sample Input 3
wwwvvvvvv
Sample Output 3
12