import java.util.*;
public class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        Integer d[] = new Integer[N];
        int s = 1;

        for(int i = 0;i < N;i++){
            d[i] = scanner.nextInt();
        }

        Arrays.sort(d, Comparator.reverseOrder());
        for(int i = 0;i < N - 1;i++){
            if(d[i] > d[i + 1])
            s++;
        }

        System.out.println(s);
        }
} import java.util.*; util.* java public class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        Integer d[] = new Integer[N];
        int s = 1;

        for(int i = 0;i < N;i++){
            d[i] = scanner.nextInt();
        }

        Arrays.sort(d, Comparator.reverseOrder());
        for(int i = 0;i < N - 1;i++){
            if(d[i] > d[i + 1])
            s++;
        }

        System.out.println(s);
        }
} Main public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        Integer d[] = new Integer[N];
        int s = 1;

        for(int i = 0;i < N;i++){
            d[i] = scanner.nextInt();
        }

        Arrays.sort(d, Comparator.reverseOrder());
        for(int i = 0;i < N - 1;i++){
            if(d[i] > d[i + 1])
            s++;
        }

        System.out.println(s);
        } main {
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        Integer d[] = new Integer[N];
        int s = 1;

        for(int i = 0;i < N;i++){
            d[i] = scanner.nextInt();
        }

        Arrays.sort(d, Comparator.reverseOrder());
        for(int i = 0;i < N - 1;i++){
            if(d[i] > d[i + 1])
            s++;
        }

        System.out.println(s);
        } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner Integer d[] = new Integer[N]; d new Integer[N] N int s = 1; s 1 for(int i = 0;i < N;i++){
            d[i] = scanner.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            d[i] = scanner.nextInt();
        } {
            d[i] = scanner.nextInt();
        } d[i] = scanner.nextInt() d[i] d i scanner.nextInt() scanner.nextInt scanner Arrays.sort(d, Comparator.reverseOrder()) Arrays.sort Arrays d Comparator.reverseOrder() Comparator.reverseOrder Comparator for(int i = 0;i < N - 1;i++){
            if(d[i] > d[i + 1])
            s++;
        } int i = 0; int i = 0; i 0 i < N - 1 i N - 1 N 1 i++ i++ i {
            if(d[i] > d[i + 1])
            s++;
        } {
            if(d[i] > d[i + 1])
            s++;
        } if(d[i] > d[i + 1])
            s++; d[i] > d[i + 1] d[i] d i d[i + 1] d i + 1 i 1 s++ s System.out.println(s) System.out.println System.out System System.out s String args[] args public class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        Integer d[] = new Integer[N];
        int s = 1;

        for(int i = 0;i < N;i++){
            d[i] = scanner.nextInt();
        }

        Arrays.sort(d, Comparator.reverseOrder());
        for(int i = 0;i < N - 1;i++){
            if(d[i] > d[i + 1])
            s++;
        }

        System.out.println(s);
        }
} public class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        Integer d[] = new Integer[N];
        int s = 1;

        for(int i = 0;i < N;i++){
            d[i] = scanner.nextInt();
        }

        Arrays.sort(d, Comparator.reverseOrder());
        for(int i = 0;i < N - 1;i++){
            if(d[i] > d[i + 1])
            s++;
        }

        System.out.println(s);
        }
} Main
import java.util.*;
public class Main{
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);
        int N = scanner.nextInt();
        Integer d[] = new Integer[N];
        int s = 1;

        for(int i = 0;i < N;i++){
            d[i] = scanner.nextInt();
        }

        Arrays.sort(d, Comparator.reverseOrder());
        for(int i = 0;i < N - 1;i++){
            if(d[i] > d[i + 1])
            s++;
        }

        System.out.println(s);
        }
}