P28906 [洛谷] [NOIP2018 Junior Group] Title Statistics
普及-
题目描述

Problem Background

NOIP2018 Junior Group T1

Problem Description

Kai has just written an excellent essay. How many characters are there in the title of this essay? Note: The title may include uppercase and lowercase English letters, numeric characters, spaces, and newline characters. When counting the number of characters in the title, spaces and newline characters are not included.

Input Format

The input file consists of a single line, containing a string $s$.

Output Format

The output file consists of a single line, containing an integer representing the number of characters in the essay title (excluding spaces and newline characters).

Sample Input and Output

Input Sample #1

234

Output Sample #1

3

Input Sample #2

Ca 45

Output Sample #2

4

Notes

Sample 1 Explanation

The title contains a total of 3 characters, all of which are numeric characters.

Sample 2 Explanation

The title contains a total of 5 characters, including 1 uppercase English letter, 1 lowercase English letter, and 2 numeric characters, as well as 1 space. Since spaces are not counted, the effective number of characters in the title is 4.

Data Size and Constraints

Let $|s|$ denote the length of the string $s$ (i.e., the number of characters and spaces in the string).

For 40% of the data, $1 ≤ |s| ≤ 5$, the input guarantees that it will be numeric characters and a newline character at the end of the line.

For 80% of the data, $1 ≤ |s| ≤ 5$, the input may only include uppercase and lowercase English letters, numeric characters, and a newline character at the end of the line.

For 100% of the data, $1 ≤ |s| ≤ 5$, the input may include uppercase and lowercase English letters, numeric characters, spaces, and a newline character at the end of the line.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
234
样例输出
3