#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, a[103], ans = 0;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  for (int i = 0; i < n; i++) {
    if (a[i] != 0 && a[i - 1] != a[i]) {
      ans++;
    }
  }
  cout << ans;
  return 0;
}
