#include <bits/stdc++.h>
using namespace std;
int n, x;
map<int, int> q;
vector<pair<int, int> > s;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> x;
    q[x]++;
  }
  for (auto it : q) {
    s.push_back(it);
  }
  int ans = n;
  for (int i = s.size() - 1; i >= 0; i--) {
    while (s[i].second--) {
      for (int j = i - 1; j >= 0; j--) {
        if (s[j].second) {
          ans--;
          s[j].second--;
        }
      }
    }
  }
  cout << ans;
}
