#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, score = 1, maxx = 0, countt = 0;
  cin >> n;
  int arr[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
    if (arr[i] > maxx) maxx = arr[i];
  }
  for (int i = 1; i < maxx; i++) {
    for (int j = 0; j < n; j++) {
      if (arr[j] == i) {
        score++;
        j = n;
      }
    }
  }
  cout << score;
  return 0;
}
