Uniformity of a string#11439

Uniformity of a string

1 second
256 megabytes
Very easy

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.

Input

A string is given, consisting only of English alphabet letters.

Output

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.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Example 3

Loading
Loading