#K40422. Counting Upper and Lowercase Characters
Counting Upper and Lowercase Characters
Counting Upper and Lowercase Characters
The task is to count the number of uppercase and lowercase English letters in a given string S.
Formally, if we denote the string as S with length n, you are required to compute:
\( U = \sum_{i=1}^{n} I( S_i \text{ is uppercase}) \) and \( L = \sum_{i=1}^{n} I( S_i \text{ is lowercase}) \),
and output the two values separated by a single space.
Note that the input string may contain digits, symbols, or be empty, but only alphabetic characters should be considered for counting.
inputFormat
The input is provided via STDIN as a single line containing the string S.
Constraints:
- 0 \(\le S \le\) 106 characters
outputFormat
Output to STDOUT two integers separated by a single space: the first integer representing the number of uppercase letters and the second representing the number of lowercase letters in the string S.
## sampleHelloWorld
2 8