import java.util.*; class Test{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int max=0; int max_frequency=0; for(int i=0;imax){ max=t; max_frequency=1; } else if(t==max){ max_frequency++; } } System.out.println(max_frequency); } }