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 sc= new Scanner(System.in); int n= sc.nextInt(); long a[]= new long [100000]; long max=0,c=0; for(int i=0;imax) { max=a[i];c=1; } else if(a[i]==max) c++; } System.out.println(c); } }