THE POWERFUL AVENGER

0

0 votes
Problem

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.

 

Time Limit: 5
Memory Limit: 256
Source Limit:
Explanation

Maximum power = 90 i.e., power of THOR

Second maximum power = 87 i.e., required power.

Editor Image

?