poliyt_palentys_321 asks you to help her determine whether the given string is uniform. A string is called uniform if it consists of only lowercase or only uppercase English letters. You are allowed to perform the following operation: case inversion, which converts an uppercase letter to lowercase or vice versa.
A string is given, consisting only of English alphabet letters.
For the given string, print to the standard output YES if the string is uniform, and after a space, print the number of characters it contains. Otherwise, print NO and after a space, print the minimum number of case inversion operations needed to make the string uniform.
Example 1
Example 2
Example 3