import sys leng = int(sys.stdin.readline()) a1=0 a2=0 a3=0 b1=0 b2=0 b3=0 l= [] arr = sys.stdin.readline().split() # print(leng,arr) for i in arr: if int(i)>0: if int(i)**2 >a1**2: a3=a2 a2=a1 a1=int(i) elif int(i)**2 >a2**2: ...