📅  最后修改于: 2022-03-11 14:45:16.750000             🧑  作者: Mango
if __name__ == '__main__':
n = int(input())
arr = map(int, input().split())
score = []
for c in list(arr):
if c not in score:
score.append(c)
else:
continue
score.sort()
print(score[len(score)-2])