#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(false);
  int n, p, i;
  cin >> n;
  vector<int> myvec;
  vector<int>::iterator it;
  for (i = 0; i < n; i++) {
    cin >> p;
    it = find(myvec.begin(), myvec.end(), p);
    if (p != 0 && it == myvec.end()) {
      myvec.push_back(p);
    }
  }
  sort(myvec.begin(), myvec.end());
  myvec.pop_back();
  cout << myvec.size() + 1;
  return 0;
}
