import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] d = new int[n];
        for(int i = 0;i < n;i++) d[i] = sc.nextInt();
        System.out.println(Arrays.stream(d).distinct().count());
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] d = new int[n];
        for(int i = 0;i < n;i++) d[i] = sc.nextInt();
        System.out.println(Arrays.stream(d).distinct().count());
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] d = new int[n];
        for(int i = 0;i < n;i++) d[i] = sc.nextInt();
        System.out.println(Arrays.stream(d).distinct().count());
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] d = new int[n];
        for(int i = 0;i < n;i++) d[i] = sc.nextInt();
        System.out.println(Arrays.stream(d).distinct().count());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] d = new int[n]; d new int[n] n for(int i = 0;i < n;i++) d[i] = sc.nextInt(); int i = 0; int i = 0; i 0 i < n i n i++ i++ i d[i] = sc.nextInt(); d[i] = sc.nextInt() d[i] d i sc.nextInt() sc.nextInt sc System.out.println(Arrays.stream(d).distinct().count()) System.out.println System.out System System.out Arrays.stream(d).distinct().count() Arrays.stream(d).distinct().count Arrays.stream(d).distinct() Arrays.stream(d).distinct Arrays.stream(d) Arrays.stream Arrays d String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] d = new int[n];
        for(int i = 0;i < n;i++) d[i] = sc.nextInt();
        System.out.println(Arrays.stream(d).distinct().count());
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] d = new int[n];
        for(int i = 0;i < n;i++) d[i] = sc.nextInt();
        System.out.println(Arrays.stream(d).distinct().count());
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] d = new int[n];
        for(int i = 0;i < n;i++) d[i] = sc.nextInt();
        System.out.println(Arrays.stream(d).distinct().count());
    }
}