CF837A.Text Volume

传统题 时间 2000 ms 内存 256 MiB 3 尝试 1 已通过 1 标签

Text Volume

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

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 s1, s2, ..., s**i, consisting only of small and capital Latin letters.

Output

Print one integer number — volume of text.

Note

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.

Samples

7
NonZERO
5
24
this is zero answer text
0
24
Harbour Space University
1

在线编程 IDE

建议全屏模式获得最佳体验