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:

# n, t = input().split(" ")
# a = input()
# n = int(n)
# t = int(t)
# s = list(a)

# while(t != 0):
#     for i in range(n-1):
#         if s[i] == 'B' and s[i+1] == 'G':
#             s[i] = 'G'
#             s[i + 1] = 'B'
#             t -= 1
#             break

# print("".join(s))

# t = int(input()[2:])
# s = input()
# while t:
#     s = s.replace('BG', 'GB')
#     t -= 1
#     print(s)
# print(s)

# n = input
# c = p = 0
# for i in' '*int(n()):
#     s = n()
#     c += s != p
#     p = s
# print(c)

# s = input()
# d = {".": "0", "-.": "1", "--": "2"}
# s = s.replace("--", "2")
# s = s.replace("-.", "1")
# s = s.replace(".", "0")
# print(s)

# y = int(input())

# while(len(set(str(y))) < 4):
#     y += 1

# print(y)

# for i in range(2):
#     o = ""
#     r = input().replace(" ", "")
#     for j in r:
#         if int(j) % 2 == 0:
#             o += "1"
#         else:
#             o += "0"
#     print(o)

# s = [[1]*5 for _ in range(5)]
# for i in 1, 2, 3:
#     for j, v in zip((1, 2, 3), map(int, input().split())):
#         for k, d in (-1, 0), (1, 0), (0, -1), (0, 1), (0, 0):
#             s[i+k][j+d] += v
# for i in 1, 2, 3:
#     for j in 1, 2, 3:
#         print(s[i][j] % 2, end='')
#     print()

s = input()
u = l = 0
for i in s:
    if i.lower() == i:
        l += 1
    else:
        u += 1
if u == l or l > u:
    s = s.lower()
elif u > l:
    s = s.upper()

print(s)