测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A11149. 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.
上一题 去做题 下一题