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 kb= new Scanner(System.in); int n = kb.nextInt(); int[] arr = new int[n]; for(int i = 0; i < n; i++){ arr[i] = kb.nextInt(); } Arrays.sort(arr); int tallest = arr[n - 1]; int count = 1; for(int i = 0; i < n - 1; i++){ if(arr [i] == tallest) count += 1; } System.out.print(count); } }