import java.io.*; import java.util.*; 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 in = new Scanner(System.in); int n = Integer.valueOf(in.nextLine()).intValue(); String[] s_array = in.nextLine().split(" "); int highest = 0; int iterations = 0; for(int i=0; i highest){ highest = number; iterations = 1; }else if(number == highest){ iterations++; }else{ //nothing } } System.out.println("" + iterations); } }