#abc357b. B - Uppercase and Lowercase

B - Uppercase and Lowercase

Score : 200200 points

问题陈述

你得到了一个由小写和大写英文字母组成的字符串 SSSS 的长度是奇数。 如果 SS 中大写字母的数量大于小写字母的数量,将 SS 中的所有小写字母转换为大写。 否则,将 SS 中的所有大写字母转换为小写。

以上为大语言模型 kimi 翻译,仅供参考。

Problem Statement

You are given a string SS consisting of lowercase and uppercase English letters. The length of SS is odd.
If the number of uppercase letters in SS is greater than the number of lowercase letters, convert all lowercase letters in SS to uppercase.
Otherwise, convert all uppercase letters in SS to lowercase.

Constraints

  • SS is a string consisting of lowercase and uppercase English letters.
  • The length of SS is an odd number between 11 and 9999, inclusive.

Input

The input is given from Standard Input in the following format:

SS

Output

Print the string SS after converting the letters according to the problem statement.

Sample Input 1

AtCoder

Sample Output 1

atcoder

The string AtCoder contains five lowercase letters and two uppercase letters. Thus, convert all uppercase letters in AtCoder to lowercase, which results in atcoder.

Sample Input 2

SunTORY

Sample Output 2

SUNTORY

The string SunTORY contains two lowercase letters and five uppercase letters. Thus, convert all lowercase letters in SunTORY to uppercase, which results in SUNTORY.

Sample Input 3

a

Sample Output 3

a