#C3410. Transform the String

    ID: 46835 Type: Default 1000ms 256MiB

Transform the String

Transform the String

Given a non-empty string consisting only of alphabetical letters, transform it according to the following rule:

If the number of uppercase letters, \(U\), is greater than or equal to the number of lowercase letters, \(L\), then convert the entire string to uppercase. Otherwise, convert the entire string to lowercase.

Formally, if \(U \geq L\), output \(s_{upper}\); otherwise, output \(s_{lower}\). The input should be read from standard input and the result printed to standard output.

inputFormat

A single line containing the string to be transformed.

outputFormat

Print the transformed string based on the rule provided.## sample

aBcDe
abcde