Thor is most powerful among all the avengers and is all set to fight Thanos. But he needs some support and hence have decided to choose ONE more avenger among the remaining averngers team.
Help THOR to find the second most powerful avenger.
INPUT - Given T - total number of avengers in the team, line consists of T space separated powers.
OUTPUT:
THOR have the maximum power, output the second most powerful avenger.
Maximum power = 90 i.e., power of THOR
Second maximum power = 87 i.e., required power.