102790: [AtCoder]ABC279 A - wwwvvvvvv

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:17 Solved:0

Description

Score : $100$ points

Problem Statement

You are given a string $S$ consisting of v and w.

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

Constraints

  • $S$ is a string consisting of v and w.
  • The length of $S$ is between $1$ and $100$, inclusive.

Input

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

$S$

Output

Print the answer as an integer.


Sample Input 1

vvwvw

Sample Output 1

7

vvwvw

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

Input

题意翻译

有一个仅包含 `w` 和 `v` 的字符串 $S$,其中一个 `w` 加两分,一个 `v` 加一分。请输出该字符串的分数。 $1\le S$ 的长度 $\le 100$。 翻译提供:xiaohaoaibiancheng66

Output

分数:$100$分

问题描述

你被给定一个由vw组成的字符串$S$。

在字符串$S$中打印出“底部”的数量(参见示例输入/输出中的图)。

约束

  • $S$是一个由vw组成的字符串。
  • $S$的长度在$1$到$100$之间,包括$1$和$100$。

输入

输入通过标准输入给出以下格式:

$S$

输出

将答案打印为一个整数。


示例输入1

vvwvw

示例输出1

7

vvwvw

上图显示了字符串vvwvw中的七个“底部”。


示例输入2

v

示例输出2

1

示例输入3

wwwvvvvvv

示例输出3

12

加入题单

算法标签: