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

~/algor $ cat problems/string-harflar-va-raqamlar

Letters and digits

Easy 1000 ms 128 MB 24%
Share

A string $s$ of Latin letters, digits and spaces is given. Find the number of letters and the number of digits in it.

Counting the characters by group: letters and digits

Input

One line containing the string $s$.

Output

One line with two space-separated integers: the number of letters and the number of digits.

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
Algor 2026 yil
Output #1
8 4
Input #2
12345
Output #2
0 5

Sign in to submit a solution

Signing up is free and takes a minute.