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

Solution:
#include <bits/stdc++.h>
using namespace std;
char upporlow(string n);
void low(string n);
void upper(string n);
int main() {
  string s;
  cin >> s;
  while (s.length() > 100) cin >> s;
  if (upporlow(s) == 'l') {
    low(s);
  } else {
    upper(s);
  }
  return 0;
}
char upporlow(string n) {
  int up = 0, low = 0;
  char loworup;
  for (int i = 0; i < n.length(); i++) {
    if (n[i] == 'a' || n[i] == 'b' || n[i] == 'c' || n[i] == 'd' ||
        n[i] == 'e' || n[i] == 'f' || n[i] == 'g' || n[i] == 'h' ||
        n[i] == 'i' || n[i] == 'j' || n[i] == 'k' || n[i] == 'l' ||
        n[i] == 'm' || n[i] == 'n' || n[i] == 'o' || n[i] == 'p' ||
        n[i] == 'q' || n[i] == 'r' || n[i] == 's' || n[i] == 't' ||
        n[i] == 'u' || n[i] == 'v' || n[i] == 'w' || n[i] == 'x' ||
        n[i] == 'y' || n[i] == 'z')
      low++;
    else if (n[i] == 'A' || n[i] == 'B' || n[i] == 'C' || n[i] == 'D' ||
             n[i] == 'E' || n[i] == 'F' || n[i] == 'G' || n[i] == 'H' ||
             n[i] == 'I' || n[i] == 'J' || n[i] == 'K' || n[i] == 'L' ||
             n[i] == 'M' || n[i] == 'N' || n[i] == 'O' || n[i] == 'P' ||
             n[i] == 'Q' || n[i] == 'R' || n[i] == 'S' || n[i] == 'T' ||
             n[i] == 'U' || n[i] == 'V' || n[i] == 'W' || n[i] == 'X' ||
             n[i] == 'Y' || n[i] == 'Z')
      up++;
  }
  if (low < up)
    loworup = 'u';
  else
    loworup = 'l';
  return loworup;
}
void low(string n) {
  for (int i = 0; i < n.length(); i++) {
    if (n[i] == 'A')
      n[i] = 'a';
    else if (n[i] == 'B')
      n[i] = 'b';
    else if (n[i] == 'C')
      n[i] = 'c';
    else if (n[i] == 'D')
      n[i] = 'd';
    else if (n[i] == 'E')
      n[i] = 'e';
    else if (n[i] == 'F')
      n[i] = 'f';
    else if (n[i] == 'G')
      n[i] = 'g';
    else if (n[i] == 'H')
      n[i] = 'h';
    else if (n[i] == 'I')
      n[i] = 'i';
    else if (n[i] == 'J')
      n[i] = 'j';
    else if (n[i] == 'K')
      n[i] = 'k';
    else if (n[i] == 'L')
      n[i] = 'l';
    else if (n[i] == 'M')
      n[i] = 'm';
    else if (n[i] == 'N')
      n[i] = 'n';
    else if (n[i] == 'O')
      n[i] = 'o';
    else if (n[i] == 'P')
      n[i] = 'p';
    else if (n[i] == 'Q')
      n[i] = 'q';
    else if (n[i] == 'R')
      n[i] = 'r';
    else if (n[i] == 'S')
      n[i] = 's';
    else if (n[i] == 'T')
      n[i] = 't';
    else if (n[i] == 'U')
      n[i] = 'u';
    else if (n[i] == 'V')
      n[i] = 'v';
    else if (n[i] == 'W')
      n[i] = 'w';
    else if (n[i] == 'X')
      n[i] = 'x';
    else if (n[i] == 'Y')
      n[i] = 'y';
    else if (n[i] == 'Z')
      n[i] = 'z';
  }
  cout << n << endl;
}
void upper(string n) {
  for (int i = 0; i < n.length(); i++) {
    if (n[i] == 'a')
      n[i] = 'A';
    else if (n[i] == 'b')
      n[i] = 'B';
    else if (n[i] == 'c')
      n[i] = 'C';
    else if (n[i] == 'd')
      n[i] = 'D';
    else if (n[i] == 'e')
      n[i] = 'E';
    else if (n[i] == 'f')
      n[i] = 'F';
    else if (n[i] == 'g')
      n[i] = 'G';
    else if (n[i] == 'h')
      n[i] = 'H';
    else if (n[i] == 'i')
      n[i] = 'I';
    else if (n[i] == 'j')
      n[i] = 'J';
    else if (n[i] == 'k')
      n[i] = 'K';
    else if (n[i] == 'l')
      n[i] = 'L';
    else if (n[i] == 'm')
      n[i] = 'M';
    else if (n[i] == 'n')
      n[i] = 'N';
    else if (n[i] == 'o')
      n[i] = 'O';
    else if (n[i] == 'p')
      n[i] = 'P';
    else if (n[i] == 'q')
      n[i] = 'Q';
    else if (n[i] == 'r')
      n[i] = 'R';
    else if (n[i] == 's')
      n[i] = 'S';
    else if (n[i] == 't')
      n[i] = 'T';
    else if (n[i] == 'u')
      n[i] = 'U';
    else if (n[i] == 'v')
      n[i] = 'V';
    else if (n[i] == 'w')
      n[i] = 'W';
    else if (n[i] == 'x')
      n[i] = 'X';
    else if (n[i] == 'y')
      n[i] = 'Y';
    else if (n[i] == 'z')
      n[i] = 'Z';
  }
  cout << n << endl;
}