#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long inf = 0x3f3f3f3f;
const long long llinf = 1e18;
const long long nax = 0;
long long n;
vector<long long> arr(5005);
vector<bool> ada(5005), masuk(5005);
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie();
  cout.tie();
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
  }
  sort(arr.begin(), arr.begin() + n);
  for (int i = 0; i < n; ++i) {
    if (masuk[i]) {
      continue;
    }
    for (int j = i + 1; j < n; ++j) {
      if (arr[j] <= arr[i]) continue;
      if (!ada[j]) {
        masuk[i] = 1, ada[j] = 1;
        break;
      }
    }
  }
  int ans = n;
  for (int i = 0; i < n; ++i) {
    if (masuk[i]) ans--;
  }
  cout << ans << '\n';
}
