SDE Path

Count Uppercase Letters

Easy

Count Uppercase Letters

Count the uppercase letters in a mixed-case word.

Input format

A single line with one word S (letters only, mixed case).

Output format

Print how many uppercase letters (A-Z) appear in S.

Constraints

  • Values fit in a 64-bit signed integer
  • Trailing whitespace and a trailing newline are ignored by the judge

Read from stdin, write to stdout. Sample cases below show the exact format.

Sample cases

Example 1
Input
Hello
Expected output
1
Example 2
Input
ABCdef
Expected output
3