88. Count Letters, Digits and Spaces
EasyString
Print the number of letters, digits, spaces and other characters in the line.
Input format
A single line s.
Output format
letters digits spaces others
Example 1
Input
Hello World 123!
Output
10 3 2 1
Example 2
Input
abc
Output
3 0 0 0
Constraints
1 ≤ |s| ≤ 10⁵ (ASCII)
Read input from standard input and print the answer to standard output. Your code is judged against 5 test cases, most of them hidden.
Loading the MyLoginn IDE…