#abc357b. B - Uppercase and Lowercase
B - Uppercase and Lowercase
Score : points
问题陈述
你得到了一个由小写和大写英文字母组成的字符串 。 的长度是奇数。 如果 中大写字母的数量大于小写字母的数量,将 中的所有小写字母转换为大写。 否则,将 中的所有大写字母转换为小写。
以上为大语言模型 kimi 翻译,仅供参考。
Problem Statement
You are given a string consisting of lowercase and uppercase English letters. The length of is odd.
If the number of uppercase letters in is greater than the number of lowercase letters, convert all lowercase letters in to uppercase.
Otherwise, convert all uppercase letters in to lowercase.
Constraints
- is a string consisting of lowercase and uppercase English letters.
- The length of is an odd number between and , inclusive.
Input
The input is given from Standard Input in the following format:
Output
Print the string 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