#!/usr/bin/env python
# -*- coding: utf-8 -*-


class Solution(object):
    def detectCapitalUse(self, word):
        """
        :type word: str
        :rtype: bool
        """
        return word.upper() == word \
            or word.lower() == word \
            or word.lower().capitalize() == word
