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