#include <bits/stdc++.h>
using namespace std;
int n, b, k = 1, a[101], c, l;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> c;
    if (c != 0) a[l++] = c;
  }
  sort(a, a + l);
  b = a[0];
  for (int i = 1; i < l; i++)
    if (a[i] != b) k++, b = a[i];
  cout << k;
}
