words = input().lower()
words_list = list(set(words))
word_count = list()
for i in words_list:
count = words.count(i)
word_count.append(count)
if(word_count.count(max(word_count)) >= 2):
print('?')
else:
print(words_list[(word_count.index(max(word_count)))].upper())
'# 코딩 문제 관련 > 파이썬' 카테고리의 다른 글
Baekjoon 2908번(python) (0) | 2019.04.29 |
---|---|
Baekjoon 1316번(python) (0) | 2019.04.29 |
Baekjoon 2675번(python) (0) | 2019.04.29 |
Baekjoon 10809번(python) (0) | 2019.04.29 |
Baekjoon 11654번(python) (0) | 2019.04.29 |