1、出现次数最多的数
# -*- coding:utf-8 -*-
n = int(input())
nums = list(map(int, input().split()))
print(nums)
count = {}
for num in nums:
if num not in count:
count[num] = 1
else:
count[num] += 1
most_nums = []
# 数量最大值
most_value = max(count.values())
for key, value in count.items():
if value == most_value:
most_nums.append(key)
print(min(most_nums))
2、ISBN号码
# -*- coding:utf-8 -*-
# 输入一个字符序列
isbn = input()
isbn_num = isbn.replace("-", "")
Captcha = isbn_num[-1]
alt = 0
for i in range(9):
alt += int(isbn_num[i]) * (i + 1)
res = str(alt % 11)
# print("res", res)
if res == "10":
res = "X"
if res == Captcha:
print("Right")
else:
print(isbn[:-1] + res)