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.

输入输出格式

输入格式


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.

输出格式


Print one integer number — volume of text.

输入输出样例

输入样例 #1

7
NonZERO

输出样例 #1

5

输入样例 #2

24
this is zero answer text

输出样例 #2

0

输入样例 #3

24
Harbour Space University

输出样例 #3

1

说明

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.