#include <bits/stdc++.h>
using namespace std;
const int N = 5e3 + 2;
const int MOD = 1e9 + 7;
const int bm = 1;
int n, m;
int a[N];
void sinh() {
  freopen(".inp", "w", stdout);
  srand(time(0));
}
int main() {
  ios_base::sync_with_stdio(0);
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  sort(a + 1, a + n + 1);
  int dem = n, j = n;
  for (int i = n; i > 0; i--) {
    while (j > 0 && a[i] == a[j]) j--;
    if (j) dem--, j--;
  }
  cout << dem;
}
