SecondMax/Dr.Slink
SecondMax/shaleka
t1t1
2s = int(input())2s = int(input())
3secondMax = firstMax = s3secondMax = firstMax = s
4wereSecond = False4wereSecond = False
55
6while s:6while s:
7    if s != firstMax:7    if s != firstMax:
8        if secondMax == firstMax and s < firstMax:8        if secondMax == firstMax and s < firstMax:
9            secondMax = s9            secondMax = s
10        elif s > firstMax:10        elif s > firstMax:
11            secondMax = firstMax11            secondMax = firstMax
12            firstMax = s12            firstMax = s
13        elif s > secondMax:13        elif s > secondMax:
14            secondMax = s14            secondMax = s
1515
16    s = int(input())16    s = int(input())
1717
18if secondMax == firstMax:18if secondMax == firstMax:
19    print('NO')19    print('NO')
20else:20else:
21    print(secondMax)21    print(secondMax)
2222
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op