#CODEFORCESP7215. Word
Word
描述
Vasya非常烦恼于许多人在网络上将大写字母和小写字母混用在一个单词中。因此,他决定为他最喜欢的浏览器发明一个扩展,可以改变每个单词中字母的大小写,使其要么全部由小写字母组成,要么全部由大写字母组成。而且单词中要尽可能少地改变字母。例如,单词HoUse必须被替换为house,单词ViP必须被替换为VIP。如果一个单词中包含相同数量的大写字母和小写字母,你应该用全部小写字母替换所有字母。例如,maTRIx应该被替换为matrix。你的任务是对给定的一个单词使用给定的方法。
输入
第一行包含一个单词s - 它由大写和小写的拉丁字母组成,长度在1到100之间。
输出
打印修正后的单词s。如果给定的单词s中的大写字母数量严格多于小写字母,将单词写成大写形式,否则写成小写形式。
示例
HoUse
house
ViP
VIP
maTRIx
matrix
Description
Vasya is very upset that many people on the Net mix uppercase and lowercase letters in one word. That's why he decided to invent an extension for his favorite browser that would change the letters' register in every word so that it either only consisted of lowercase letters or, vice versa, only of uppercase ones. At that as little as possible letters should be changed in the word. For example, the word HoUse must be replaced with house, and the word ViP — with VIP. If a word contains an equal number of uppercase and lowercase letters, you should replace all the letters with lowercase ones. For example, maTRIx should be replaced by matrix. Your task is to use the given method on one given word.
The first line contains a word s — it consists of uppercase and lowercase Latin letters and possesses the length from 1 to 100.
Print the corrected word s. If the given word s has strictly more uppercase letters, make the word written in the uppercase register, otherwise - in the lowercase one.
Input
The first line contains a word s — it consists of uppercase and lowercase Latin letters and possesses the length from 1 to 100.
Output
Print the corrected word s. If the given word s has strictly more uppercase letters, make the word written in the uppercase register, otherwise - in the lowercase one.
Samples
HoUse
house
ViP
VIP
maTRIx
matrix