Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/string-katta-harflar-soni

Number of uppercase letters

Easy 1000 ms 128 MB 23%
Share

A string $s$ of Latin letters, digits and spaces is given. Find the number of uppercase Latin letters (A to Z) in it.

Picking out and counting only the uppercase letters of the string

Input

One line containing the string $s$.

Output

One integer.

Note

$1 \le |s| \le 10^{5}$
$s$ consists of Latin letters (uppercase and lowercase), digits and spaces
$s$ does not start or end with a space

Examples

Input #1
Toshkent Va Samarqand
Output #1
3
Input #2
abc
Output #2
0

Sign in to submit a solution

Signing up is free and takes a minute.