str = raw_input("input:")
'''
题目: 根据输入,如果是数字,取出 第1th的百分位数;如果是字母,取出出现频次第1的字母
输入:
[1,2,3,4,5,6,6,6,6,7,8,9,80,9]
[Tianjin,Nanjing,Nanjing,Hainan]
'''
cnt_str = 0
cnt_dig = 0
print str
str1 = str.split('\n')
print str1
digits = []
strings = []
for i in range(len(str1)):
str1[i] = str1[i].strip(' []\n')
if str1[i][0].isdigit():
str1[i] = list(eval(str1[i]))
digits.append(i)
elif str1[i][0].isalpha():
str1[i] = str1[i].split(',')
strings.append(i)
#输出第1th个数字的百分位数
all_digits = []
for i in digits:
all_digits.extend(str1[i])
p1 = all_digits[0]%1000/100
print p1
#输出出现次数排名第1的字符
from collections import Counter
all_string = []
for i in range(strings):
all_string.extend(str1[i])
str_set = set(all_string)
str_cnt = {}
for item in str_set:
str_cnt[item] = all_string.count(item)
print sorted(str_cnt.keys())[0]
'''
题目: 根据输入,如果是数字,取出 第1th的百分位数;如果是字母,取出出现频次第1的字母
输入:
[1,2,3,4,5,6,6,6,6,7,8,9,80,9]
[Tianjin,Nanjing,Nanjing,Hainan]
'''
cnt_str = 0
cnt_dig = 0
print str
str1 = str.split('\n')
print str1
digits = []
strings = []
for i in range(len(str1)):
str1[i] = str1[i].strip(' []\n')
if str1[i][0].isdigit():
str1[i] = list(eval(str1[i]))
digits.append(i)
elif str1[i][0].isalpha():
str1[i] = str1[i].split(',')
strings.append(i)
#输出第1th个数字的百分位数
all_digits = []
for i in digits:
all_digits.extend(str1[i])
p1 = all_digits[0]%1000/100
print p1
#输出出现次数排名第1的字符
from collections import Counter
all_string = []
for i in range(strings):
all_string.extend(str1[i])
str_set = set(all_string)
str_cnt = {}
for item in str_set:
str_cnt[item] = all_string.count(item)
print sorted(str_cnt.keys())[0]