input_str = input().upper()
input_list = list(set(input_str))
count_list = []
for i in input_list:
count_list.append(input_str.count(i))
if count_list.count(max(count_list)) > 1:
print("?")
else:
print(input_list[(count_list.index(max(count_list)))])
'알고리즘 > 심화1' 카테고리의 다른 글
백준 1316 python (0) | 2023.06.16 |
---|---|
백준 4344 python (0) | 2023.06.16 |
백준 10988 python (0) | 2023.06.15 |
백준 2444 python (0) | 2023.06.15 |
백준 3003 python (0) | 2023.06.15 |