Given a word, you need to judge whether the usage of capitals in it is right or not.
We define the usage of capitals in a word to be right when one of the following cases holds:
- All letters in this word are capitals, like "USA".//所有单词都大写
- All letters in this word are not capitals, like "leetcode".//所有单词都小写
- Only the first letter in this word is capital, like "Google".//只有首字母大写,其余小写.
Otherwise, we define that this word doesn't use capitals in a right way.//否则,我们定义这个词没有正确地使用大写字母。
Example 1:
Input: "USA"
Output: True
Example 2: