#include <bits/stdc++.h>
using namespace std;
int n, a[105], b[605], ans;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    b[a[i]]++;
  }
  for (int i = 600; i > 0; i--)
    if (b[i]) ans++;
  cout << ans;
  return 0;
}
