#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cout.tie(0);
  cin.tie(0);
  int n, k, ot = 0;
  cin >> n;
  int a[n];
  k = n;
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  while (k > 0) {
    int pr = -1, nom = n;
    for (int i = n - 1; i > -1; i--)
      if (a[i] != -1) {
        nom = i;
        pr = a[i];
        a[i] = -1;
        k--;
        break;
      }
    if (pr == -1) break;
    for (int i = nom; i > -1; i--)
      if (a[i] != -1 && a[i] < pr) {
        pr = a[i];
        a[i] = -1;
        k--;
      }
    ot++;
  }
  cout << ot;
  return 0;
}
