class Solution(object):
    def detectCapitalUse(self, word):
        """
        :type word: str
        :rtype: bool
        """
        return word.isupper() or word.islower() or word.istitle()
a=Solution()
word="FlaG"
b=a.detectCapitalUse(word)
print(b)
