#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <math.h>
#include <string>
#include <algorithm>
using namespace std;
int main() {
string s;
cin >> s;
int cnt = 0;
int len = s.length();
for (int i = 0;i < len;++i) {
if (s[i] >= 65 && s[i] <= 90) {
cnt++;
}
}
if (cnt > (len / 2)) {
for (int i = 0;i < len;++i) {
s[i] = toupper(s[i]);
}
}
else {
for (int i = 0;i < len;++i) {
s[i] = tolower(s[i]);
}
}
cout << s << endl;
return 0;
}