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); //System.out.print("Enter how many candles "); int n = input.nextInt(); //Create a string array to height of candles int a[]=new int[n]; for (int i = 0; i < n; i++) { a[i]=input.nextInt(); } int count=0 , max=a[0]; for(int j=0 ;jmax){ max=a[j]; count=0; } if(a[j]==max){ count++; } } System.out.println(count); } }