📅  最后修改于: 2022-03-11 15:00:21.159000             🧑  作者: Mango
from collections import Counter
if __name__ == '__main__':
n = int(raw_input())
arr = Counter(map(int, raw_input().split())).keys()
arr.sort()
print arr[-2]