import java.util.Scanner; /** * Created by whiled on 17/05/04. */ public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int[] v = new int[N]; for (int i=0; i 2) res[2] = Math.max(v[0], v[1]); for (int i=2; i