#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> opada;
  int n;
  int i, j, sum = 0;
  int x;
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> x;
    opada.push_back(x);
  }
  sort(opada.begin(), opada.end());
  int in = opada.size() - 2;
  for (i = opada.size() - 1; i >= 0; i--) {
    if (opada[i] != -1) {
      for (j = in; j >= 0; j--) {
        in--;
        if (opada[i] > opada[j] && opada[j] > 0) {
          sum++;
          break;
        }
      }
      if (in == -1) break;
    }
  }
  cout << n - sum;
  return 0;
}
