import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */ Scanner input=new Scanner(System.in); int n,max=0,c=0; n=input.nextInt(); int height[]=new int[n]; for(int i=0;imax) max=height[i]; } for(int i=0;i