import java.util.Scanner; /** * * @author Prashant */ public class Main { public static void main(String[] args) { long n,max=0,count=0; int n1; Scanner sc = new Scanner(System.in); n = sc.nextLong(); n1 = (int)n; long[] height = new long[n1]; for(int i=0;imax) { max=height[i]; } } for(int i=0;i