Problem1532--CF837 - A. Text Volume

1532: CF837 - A. Text Volume

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 256 MiB

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 thevolumeof the given text.

Input

The first line contains one integer number $n\ (1≤n≤200)$ − length of the text.
The second line contains text of single-space separated words $s_1,s_2,...,s_i$, consisting only of small and capital Latin letters.

Output

Print one integer number − volume of text.

Sample 1 Input

7
NonZERO

Sample 1 Output

5
there is only one word, there are $5$ capital letters in it.

Sample 2 Input

24
this is zero answer text

Sample 2 Output

0
all of the words contain $0$ capital letters.

Sample 3 Input

24
Harbour Space University

Sample 3 Output

1

Source/Category