import java.util.*; import java.io.*; class Main{ public static void main(String args[]){ int n=readI();readI(); int min=readI(); int max=min; for(int i=1;it){min=t;} if(max