Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Alayna and Strings

By shajia · 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


Discussion
Statistics

96% Solution Ratio

fsshakkhorEarliest, Mar '17

fsshakkhorFastest, 0.0s

Mili290Lightest, 0 B

FahimSifnatulShortest, 59B

Submit

Login to submit