#include <bits/stdc++.h>
using namespace std;
int n, ans;
int a[101];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) scanf("%d", &a[i]);
  sort(a + 1, a + n + 1);
  if (!a[n]) return puts("0"), 0;
  for (int i = 1; i <= n; ++i)
    if (a[i] && a[i] != a[i + 1]) ++ans;
  printf("%d\n", ans);
  return 0;
}
