{"raw_statement":[{"iden":"statement","content":"You are given a text of single-space separated words, consisting of small and capital Latin letters.\n\n_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.\n\nCalculate the _volume_ of the given text."},{"iden":"input","content":"The first line contains one integer number _n_ (1 ≤ _n_ ≤ 200) — length of the text.\n\nThe second line contains text of single-space separated words _s_1, _s_2, ..., _s__i_, consisting only of small and capital Latin letters."},{"iden":"output","content":"Print one integer number — _volume_ of text."},{"iden":"examples","content":"Input\n\n7\nNonZERO\n\nOutput\n\n5\n\nInput\n\n24\nthis is zero answer text\n\nOutput\n\n0\n\nInput\n\n24\nHarbour Space University\n\nOutput\n\n1"},{"iden":"note","content":"In the first example there is only one word, there are _5_ capital letters in it.\n\nIn the second example all of the words contain _0_ capital letters."}],"translated_statement":[{"iden":"statement","content":"给定一个由空格分隔的单词组成的文本，单词仅包含小写和大写拉丁字母。\n\n一个单词的 _体积_ 是其中大写字母的数量。文本的 _体积_ 是文本中所有单词的最大 _体积_。\n\n请计算给定文本的 _体积_。\n\n第一行包含一个整数 #cf_span[n] (#cf_span[1 ≤ n ≤ 200]) — 文本的长度。\n\n第二行包含由空格分隔的单词 #cf_span[s1, s2, ..., si] 的文本，仅由小写和大写拉丁字母组成。\n\n请输出一个整数 — 文本的 _体积_。\n\n在第一个示例中，只有一个单词，其中包含 _5_ 个大写字母。\n\n在第二个示例中，所有单词都包含 _0_ 个大写字母。\n\n"},{"iden":"input","content":"第一行包含一个整数 #cf_span[n] (#cf_span[1 ≤ n ≤ 200]) — 文本的长度。第二行包含由空格分隔的单词 #cf_span[s1, s2, ..., si] 的文本，仅由小写和大写拉丁字母组成。"},{"iden":"output","content":"请输出一个整数 — 文本的 _volume_。"},{"iden":"examples","content":"输入7NonZERO输出5输入24this is zero answer text输出0输入24Harbour Space University输出1"},{"iden":"note","content":"在第一个示例中，只有一个单词，其中包含 _5_ 个大写字母。在第二个示例中，所有单词都包含 _0_ 个大写字母。"}],"sample_group":[],"show_order":[],"formal_statement":"**Definitions**  \nLet $ n \\in \\mathbb{Z} $ be the length of the text (number of characters).  \nLet $ S $ be a string of length $ n $, consisting of single-space-separated words made of uppercase and lowercase Latin letters.  \nLet $ W = \\{w_1, w_2, \\dots, w_m\\} $ be the set of words obtained by splitting $ S $ by spaces, where $ m $ is the number of words.\n\nFor a word $ w \\in W $, define its *volume* as:  \n$$\n\\text{vol}(w) = \\left| \\{ c \\in w \\mid c \\text{ is an uppercase Latin letter} \\} \\right|\n$$\n\nThe *volume of the text* is:  \n$$\n\\text{vol}(S) = \\max_{w \\in W} \\text{vol}(w)\n$$\n\n**Constraints**  \n1. $ 1 \\leq n \\leq 200 $  \n2. Each character in $ S $ is either an uppercase Latin letter (A–Z), lowercase Latin letter (a–z), or a space.  \n3. Words are separated by single spaces; no leading, trailing, or consecutive spaces.\n\n**Objective**  \nCompute $ \\text{vol}(S) = \\max_{w \\in W} \\text{vol}(w) $.","simple_statement":null,"has_page_source":false}