atcoder#ABC279A. [ABC279A] wwwvvvvvv

[ABC279A] wwwvvvvvv

Score : 100100 points

Problem Statement

You are given a string SS consisting of v and w.

Print the number of "bottoms" in the string SS (see the figure at Sample Input/Output).

Constraints

  • SS is a string consisting of v and w.
  • The length of SS is between 11 and 100100, inclusive.

Input

The input is given from Standard Input in the following format:

SS

Output

Print the answer as an integer.

vvwvw
7

vvwvw

The image above shows the seven "bottoms" in the string vvwvw.

v
1
wwwvvvvvv
12