#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int scores[n];
  for (int i = 0; i < n; i++) {
    cin >> scores[i];
  }
  int unique_numbers[601];
  for (int i = 0; i < 601; i++) {
    unique_numbers[i] = 0;
  }
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    unique_numbers[scores[i]]++;
    if (unique_numbers[scores[i]] == 1) {
      if (scores[i] > 0) cnt++;
    }
  }
  cout << cnt;
  return 0;
}
