SecondMax/Khachatur_khachatryan_701
SecondMax/Stephan
n1max1 = int(input())n1x_max = int(input())
2max2 = int(input())2y_max = int(input())
33
n4if max1 == max2 == 0:n4if x_max == y_max == 0:
5    print('Error')5    print('Error')
n6elif max2 == 0:n6elif y_max == 0:
7    print('NO')7    print('NO')
8else:8else:
n9    if max1 < max2:n9    if x_max < y_max:
10        max1, max2 = max2, max110        x_max, y_max = y_max, x_max
11    elem = int(input())11    elem = int(input())
12    while elem != 0:12    while elem != 0:
n13        if elem > max1:n13        if elem > x_max:
14            max2, max1 = max1, elem14            y_max, x_max = x_max, elem
15        elif (elem > max2) and (elem != max1):15        elif (elem > y_max) and (elem != x_max):
16            max2 = elem16            y_max = elem
17        elem = int(input())17        elem = int(input())
n18    if max1 == max2:n18    if x_max == y_max:
19        print('NO')19        print('NO')
20    else:20    else:
t21        print(max2)t21        print(y_max)
2222
Legends
Colors
 Added 
Changed
Deleted
Links
(f)irst change
(n)ext change
(t)op