#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  vector<int> v;
  cin >> n;
  v.resize(n);
  for (int i = 0; i < n; i++) scanf("%d", &v[i]);
  sort(v.begin(), v.end());
  int x = 0, j = 0;
  vector<int> freq;
  freq.resize(n + 1);
  for (int i = 0; i < n; i++) {
    if (v[i] == x)
      freq[j]++;
    else {
      j++;
      freq[j]++;
      x = v[i];
    }
  }
  int sum = 0;
  for (int i = 1; i <= n; i++) {
    sum = abs(sum - freq[i]) + min(sum, freq[i]);
  }
  cout << sum;
  return 0;
}
