#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int d[N];
  for (int i = 0; i < N; ++i) cin >> d[i];
  sort(d, d + N);
  reverse(d, d + N);
  int maxv = 101, res = 0;
  for (int i = 0; i < N; ++i) {
    if (d[i] < maxv) {
      maxv = d[i];
      res++;
    }
  }
  cout << res << endl;
  return 0;
}
