newton/solutions/word.py

18 lines
194 B
Python
Raw Normal View History

2025-01-12 13:32:39 +00:00
import string
s = input()
l = 0
h = 0
for i in list(s):
if i in string.ascii_uppercase:
h += 1
else:
l += 1
if h > l:
print(s.upper())
else:
print(s.lower())