#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  vector<int> arr(n);
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  sort(arr.begin(), arr.end());
  vector<bool> exists(n, true);
  int cn = n;
  for (int run = 0; run <= n; run++) {
    int currsiz = 1000000007;
    int prev = -1;
    for (int i = n - 1; i >= 0; i--) {
      if (exists[i] && arr[i] < currsiz) {
        if (currsiz != 1000000007) {
          exists[i] = false;
          exists[prev] = false;
          cn--;
        }
        prev = i;
        currsiz = arr[i];
      }
    }
  }
  cout << cn;
  return 0;
}
