Uniformity of a string#11439

Uniformity of a string

1 secondo
256 megabyte
Molto facile

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.

Esempi

Esempio 1

Loading
Loading

Esempio 2

Loading
Loading

Esempio 3

Loading
Loading