#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<unsigned long long> myVector(N);
  for (int i = 0; i < N; i++) cin >> myVector[i];
  sort(myVector.begin(), myVector.end());
  bitset<5010> myBitset;
  for (int i = 0; i < N; i++) {
    myBitset[i] = 1;
    for (int j = i + 1; j < N; j++) {
      if (myBitset[j]) continue;
      if (myVector[i] < myVector[j]) {
        myBitset[j] = 1;
        myBitset[i] = 0;
        break;
      }
    }
  }
  int count = 0;
  for (int i = 0; i < N; i++)
    if (myBitset[i]) count++;
  cout << count;
  return 0;
}
