import java.util.*;
import java.util.stream.*;
class Main {
    public static void main(String[] args) {
        Scanner input;
        input = new Scanner(System.in);
        int N = input.nextInt();
        Integer[] d = new Integer[N];
        for (int i = 0; i < N; i++){
            d[i] = input.nextInt();
        }
        Arrays.sort(d,Comparator.reverseOrder());
        int now = 0;
        int ans = 0;
        for (int i = 0; i < N; i++){
            if (now != d[i]){
                ans += 1;
                now = d[i];
            }
        }
        System.out.println(ans);
    }
} import java.util.*; util.* java import java.util.stream.*; stream.* java.util class Main {
    public static void main(String[] args) {
        Scanner input;
        input = new Scanner(System.in);
        int N = input.nextInt();
        Integer[] d = new Integer[N];
        for (int i = 0; i < N; i++){
            d[i] = input.nextInt();
        }
        Arrays.sort(d,Comparator.reverseOrder());
        int now = 0;
        int ans = 0;
        for (int i = 0; i < N; i++){
            if (now != d[i]){
                ans += 1;
                now = d[i];
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        Scanner input;
        input = new Scanner(System.in);
        int N = input.nextInt();
        Integer[] d = new Integer[N];
        for (int i = 0; i < N; i++){
            d[i] = input.nextInt();
        }
        Arrays.sort(d,Comparator.reverseOrder());
        int now = 0;
        int ans = 0;
        for (int i = 0; i < N; i++){
            if (now != d[i]){
                ans += 1;
                now = d[i];
            }
        }
        System.out.println(ans);
    } main {
        Scanner input;
        input = new Scanner(System.in);
        int N = input.nextInt();
        Integer[] d = new Integer[N];
        for (int i = 0; i < N; i++){
            d[i] = input.nextInt();
        }
        Arrays.sort(d,Comparator.reverseOrder());
        int now = 0;
        int ans = 0;
        for (int i = 0; i < N; i++){
            if (now != d[i]){
                ans += 1;
                now = d[i];
            }
        }
        System.out.println(ans);
    } Scanner input; input input = new Scanner(System.in) input new Scanner(System.in) int N = input.nextInt(); N input.nextInt() input.nextInt input Integer[] d = new Integer[N]; d new Integer[N] N for (int i = 0; i < N; i++){
            d[i] = input.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            d[i] = input.nextInt();
        } {
            d[i] = input.nextInt();
        } d[i] = input.nextInt() d[i] d i input.nextInt() input.nextInt input Arrays.sort(d,Comparator.reverseOrder()) Arrays.sort Arrays d Comparator.reverseOrder() Comparator.reverseOrder Comparator int now = 0; now 0 int ans = 0; ans 0 for (int i = 0; i < N; i++){
            if (now != d[i]){
                ans += 1;
                now = d[i];
            }
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if (now != d[i]){
                ans += 1;
                now = d[i];
            }
        } {
            if (now != d[i]){
                ans += 1;
                now = d[i];
            }
        } if (now != d[i]){
                ans += 1;
                now = d[i];
            } now != d[i] now d[i] d i {
                ans += 1;
                now = d[i];
            } ans += 1 ans 1 now = d[i] now d[i] d i System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;
import java.util.stream.*;
class Main {
    public static void main(String[] args) {
        Scanner input;
        input = new Scanner(System.in);
        int N = input.nextInt();
        Integer[] d = new Integer[N];
        for (int i = 0; i < N; i++){
            d[i] = input.nextInt();
        }
        Arrays.sort(d,Comparator.reverseOrder());
        int now = 0;
        int ans = 0;
        for (int i = 0; i < N; i++){
            if (now != d[i]){
                ans += 1;
                now = d[i];
            }
        }
        System.out.println(ans);
    }
}