#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, c = 0;
  cin >> n;
  int a[n], b[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    b[i] = 0;
  }
  int z = sizeof(a) / sizeof(a[0]);
  sort(a, a + z);
  for (int i = 0; i < n - 1; i++) {
    for (int j = i + 1; j < n; j++) {
      if (a[j] > a[i] && b[j] == 0) {
        b[j] = 1;
        a[i] = 0;
        break;
      }
    }
  }
  for (int i = 0; i < n; i++) {
    if (a[i] != 0) c++;
  }
  cout << c;
}
