Problem: 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.

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.

Examples

Input

HoUse


Output

house


Input

ViP


Output

VIP


Input

maTRIx


Output

matrix

Solution (in PYTHON):

Solution:
a = 0
b = 0
string1 = raw_input()
a += string1.count('a')
a += string1.count('b')
a += string1.count('c')
a += string1.count('d')
a += string1.count('e')
a += string1.count('f')
a += string1.count('g')
a += string1.count('h')
a += string1.count('i')
a += string1.count('j')
a += string1.count('k')
a += string1.count('l')
a += string1.count('m')
a += string1.count('n')
a += string1.count('o')
a += string1.count('p')
a += string1.count('q')
a += string1.count('r')
a += string1.count('s')
a += string1.count('t')
a += string1.count('u')
a += string1.count('v')
a += string1.count('w')
a += string1.count('x')
a += string1.count('y')
a += string1.count('z')
b += string1.count('A')
b += string1.count('B')
b += string1.count('C')
b += string1.count('D')
b += string1.count('E')
b += string1.count('F')
b += string1.count('G')
b += string1.count('H')
b += string1.count('I')
b += string1.count('J')
b += string1.count('K')
b += string1.count('L')
b += string1.count('M')
b += string1.count('N')
b += string1.count('O')
b += string1.count('P')
b += string1.count('Q')
b += string1.count('R')
b += string1.count('S')
b += string1.count('T')
b += string1.count('U')
b += string1.count('V')
b += string1.count('W')
b += string1.count('X')
b += string1.count('Y')
b += string1.count('Z')
if b>a:
    print string1.upper()
else:
    print string1.lower()