#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int a, j, n, m, c = 0;
  map<int, int> my;
  scanf("%lld", &n);
  for (m = 0; m < n; m++) {
    scanf("%lld", &a);
    if (a > 0) my[a]++;
  }
  for (m = 0; m < my.size(); m++) {
    c++;
  }
  cout << c << endl;
}
