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 PYTHON3):

Solution:
'''
import math

def BearAndBigBrother():
    a, b = map(int, input().split(' '))
    year = 0
    while 1:
        if a > b:
            break
        else:
            a *= 3
            b *= 2
            year += 1
    print(year)
    return None

def Tram():
    n = int(input())
    p = [0]
    for i in range(1, n+1):
        a, b = map(int, input().split())
        tmp = p[i-1]
        tmp -= a
        tmp += b
        p.append(tmp)
    print(max(p))
    return None


def WrongSubtraction():
    n ,k = map(int, input().split())
    for i in range(k):
        if n % 10 == 0:
            n = n // 10
        else:
            n -= 1
    print(n)
    return None


def Elephant():
    x = int(input())
    i = steps = 0
    tmp = [j for j in range(1, 6) if x // j > 0]
    stepsize = max(tmp)
    while i < x:
        steps += (x-i) // stepsize
        i += stepsize*steps
        tmp2 = [j for j in range(1, stepsize) if (x-i) // j > 0]
        try:
            stepsize = max(tmp2)
        except:
            continue
    print(steps)

    return None


def QueueAtTheSchool():
    n, t = map(int, input().split())
    s = input()
    Q = [i for i in s]
    for i in range(t):
        j = 0
        while j < len(Q)-1:
            if Q[j] == 'B' and Q[j+1] == 'G':
                Q[j], Q[j+1] = Q[j+1], Q[j]
                j += 2
            else:
                j += 1
    s_f = ''.join(Q)
    print(s_f)

    return None


def NearlyLuckyNumber():
    n = input()
    nl = str(n.count('4') + n.count('7'))
    tmp = set([i for i in nl])
    if (len(tmp) <= 2) and (('4' in tmp) or ('7' in tmp)):
        print('YES')
    else:
        print('NO')
        '''
def Word():
    s = input()
    countA = countB = 0
    for i in s:
        if i.isupper():
            countA += 1
        else:
            countB += 1
    if countA > countB:
        print(s.upper())
    else:
        print(s.lower())
        


def main():
    #BearAndBigBrother()
    #Tram()
    #WrongSubtraction()
    #Elephant()
    #QueueAtTheSchool()
    #NearlyLuckyNumber()
    Word()

main()