{"raw_statement":[{"iden":"problem statement","content":"You are given $N$ integers $A_1, A_2, \\ldots, A_N$. Find the largest among those integers that are not the largest.\nThe constraints of this problem guarantee that the answer exists."},{"iden":"constraints","content":"*   $2 \\leq N \\leq 100$\n*   $1 \\leq A_i \\leq 100$\n*   It is not the case that all $A_1, A_2, \\ldots, A_N$ are equal.\n*   All input values are integers."},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$N$\n$A_1$ $A_2$ $\\ldots$ $A_N$"},{"iden":"sample input 1","content":"5\n2 1 3 3 2"},{"iden":"sample output 1","content":"2\n\nThe largest integer among $2,1,3,3,2$ is $3$.\nThe integers that are not $3$ among $2,1,3,3,2$ are $2,1,2$, among which the largest is $2$."},{"iden":"sample input 2","content":"4\n4 3 2 1"},{"iden":"sample output 2","content":"3"},{"iden":"sample input 3","content":"8\n22 22 18 16 22 18 18 22"},{"iden":"sample output 3","content":"18"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}