#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const double pi = 3.1415926535897;
void SuperFast() {
  ios_base::sync_with_stdio(false);
  cout.tie(NULL);
  cin.tie(NULL);
}
void INOUT() {}
void AcCePtEd() {
  int x;
  cin >> x;
  set<int> s;
  for (int i = 0; i < x; i++) {
    int n;
    cin >> n;
    if (n > 0) s.insert(n);
  }
  cout << s.size() << "\n";
}
int main() {
  SuperFast();
  INOUT();
  int TeStCaSeS = 1;
  while (TeStCaSeS--) {
    AcCePtEd();
  }
  return 0;
}
