CF837A Text Volume

Description

You are given a text of single-space separated words, consisting of small and capital Latin letters. Volume of the word is number of capital letters in the word. Volume of the text is maximum volume of all words in the text. Calculate the volume of the given text.

Input Format

The first line contains one integer number $ n $ ( $ 1

Output Format

Print one integer number — volume of text.

Explanation/Hint

In the first example there is only one word, there are 5 capital letters in it. In the second example all of the words contain 0 capital letters.