Question
Value of the text

You are given a text of single- space separated words, consisting of small and capital Latin letters.



Value of the word is number of capital letters in the word.  Value of the text is maximum volume of all words in the text.



Calculate the Value 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 an integer.
Example
Input
7
New Ton

Output
1

Explanation
Because, value of word New = 1, and Ton = 1. Hence, value of text is 1.

Online React JS Editor

Learn React.js development with our free online code editor

Our React.js development environment provides a seamless platform to write, build, and test React.js code directly in your browser. Whether you're a React.js beginner or an experienced developer, our interactive editor is a powerful tool to practice coding, experiment with React components, and enhance your React.js skills.

Features

  • Real-time Code Execution: Write React.js code and instantly see the rendered components without any installations or setup.
  • Error Detection: Quickly identify and correct syntax errors in your code with helpful error messages.

How to use?

  • Start Writing Code: Begin typing your React.js code in the editor window.
  • View Component Output: Your React components are displayed in real-time automatically.
  • Debugging: Review the editor's error messages to troubleshoot and refine your React.js code.

Tips for learning React.js

  • Grasp React Fundamentals: Start with simple React components to understand the core concepts of React.js, such as state, props, and lifecycle methods.
  • Utilize Online Resources: Explore React.js tutorials, official documentation, and developer communities to deepen your understanding and find solutions to coding challenges.
  • Practice Regularly: Consistent coding practice is vital for becoming proficient in React.js and building dynamic web applications.
  • Experiment with React Libraries: Explore popular React.js libraries and tools to accelerate your development process and create interactive user interfaces.

Why choose Newton School's React.js editor?

  • User-Friendly Interface: Our React.js editor is designed for ease of use, suitable for both beginners and experienced developers.
  • Instant Feedback: Receive immediate results as you code, facilitating faster learning and iterative development.
  • No Installation Required: Enjoy the convenience of coding React.js right in your browser without any installations or downloads.