#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t, count = 0;
  set<int> s;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> t;
    if (t > 0) {
      s.insert(t);
    }
  }
  count = s.size();
  cout << count;
}
