#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  int vet[(long long)1e2 + 9];
  for (int i = 0; i < n; i++) cin >> vet[i];
  sort(vet, vet + n);
  long long ans = 0;
  for (int i = 0; i < n; i++) {
    if (vet[i] == 0) continue;
    ans++;
    int f = vet[i];
    while (vet[i] == f) i++;
    i--;
  }
  cout << ans << '\n';
  return 0;
}
