Skip to main content
LIVE CONTEST: Round #7 · Begin Marathon is live now! …

~/algor $ cat problems/string/number-of-letters-and-digits

Number of letters and digits

Author Iqbolshoh Ilhomjonov 3 @iqbolshoh 650 problems
Easy 1000 ms 128 MB 24%
Share

A string 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 .

Output

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

Note


consists of Latin letters (uppercase and lowercase), digits and spaces
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.