Preparando MOJI

Text Volume

1000ms 262144K

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:

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, ..., si, consisting only of small and capital Latin letters.

Output:

Print one integer number — volume of text.

Sample Input:

7
NonZERO

Sample Output:

5

Sample Input:

24
this is zero answer text

Sample Output:

0

Sample Input:

24
Harbour Space University

Sample Output:

1

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.

Informação

Codeforces

Provedor Codeforces

Código CF837A

Tags

implementation

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 09:17:15

Relacionados

Nada ainda