import java.util.*; public class Evaluation{ public static void main(String... args){ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] number = new int[n]; for(int i = 0; i < n; i++){ number[i] = scan.nextInt(); } Arrays.sort(number); System.out.println(MostOften(n,number)); } public static int MostOften(int n,int[] number){ int[] data = new int[n]; int count=0; int now=0; for(int i = 0; i < n-1;i++){ if(number[i] == number[i+1]){ count++; }else{ data[now]=count; now++; count=0; } } Arrays.sort(data); int max = 0; for(int j = 0; j < n; j++){ if(max < data[j])max = data[j]; } return max; } }