Limits 1s, 512 MB

Alayna's father Baba gifted her a nice alphabet book last month. And now Alayna is in love with alphabets. You will be surprised to know that she has learned all the letters and she also knows the capital and small letters of English alphabet!

As she loves to play with alphabets, Baba invented another game using English alphabet named WOOHOOO !

The Game is that- Baba gives a string that contains English letters. Alayna's work is to find the number of capital letters and the number of small letters from the given string.

So little Alayna again asked for your help. You have to make a calculator for Alayna which will give the count of capital letters and the number of small letters from the given string.

Input

The only line contains a non-empty string. This string consists of lowercase and uppercase English letters. The length of the string will not exceed 103.

Output

Output the the number of capital letters and the number of small letters from the given string.

Sample

InputOutput
AB@
2 0

Submit

Login to submit.

Statistics

95% Solution Ratio
fsshakkhorEarliest, Mar '17
fsshakkhorFastest, 0.0s
Mili290Lightest, 0 B
FahimSifnatulShortest, 59B
Toph uses cookies. By continuing you agree to our Cookie Policy.