import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        Integer[] list = new Integer[n];

        for(int i = 0; i < n; i++){
            list[i] = sc.nextInt();
        }

        Arrays.sort(list);
        
        int t = list[0];
        int ans = 1;

        for(int i = 1; i < n; i++){
            if(list[i] != t){
                t = list[i];
                ans++;
            }
        }

        System.out.println(ans);

        sc.close();
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        Integer[] list = new Integer[n];

        for(int i = 0; i < n; i++){
            list[i] = sc.nextInt();
        }

        Arrays.sort(list);
        
        int t = list[0];
        int ans = 1;

        for(int i = 1; i < n; i++){
            if(list[i] != t){
                t = list[i];
                ans++;
            }
        }

        System.out.println(ans);

        sc.close();
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        Integer[] list = new Integer[n];

        for(int i = 0; i < n; i++){
            list[i] = sc.nextInt();
        }

        Arrays.sort(list);
        
        int t = list[0];
        int ans = 1;

        for(int i = 1; i < n; i++){
            if(list[i] != t){
                t = list[i];
                ans++;
            }
        }

        System.out.println(ans);

        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        Integer[] list = new Integer[n];

        for(int i = 0; i < n; i++){
            list[i] = sc.nextInt();
        }

        Arrays.sort(list);
        
        int t = list[0];
        int ans = 1;

        for(int i = 1; i < n; i++){
            if(list[i] != t){
                t = list[i];
                ans++;
            }
        }

        System.out.println(ans);

        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc Integer[] list = new Integer[n]; list new Integer[n] n for(int i = 0; i < n; i++){
            list[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            list[i] = sc.nextInt();
        } {
            list[i] = sc.nextInt();
        } list[i] = sc.nextInt() list[i] list i sc.nextInt() sc.nextInt sc Arrays.sort(list) Arrays.sort Arrays list int t = list[0]; t list[0] list 0 int ans = 1; ans 1 for(int i = 1; i < n; i++){
            if(list[i] != t){
                t = list[i];
                ans++;
            }
        } int i = 1; int i = 1; i 1 i < n i n i++ i++ i {
            if(list[i] != t){
                t = list[i];
                ans++;
            }
        } {
            if(list[i] != t){
                t = list[i];
                ans++;
            }
        } if(list[i] != t){
                t = list[i];
                ans++;
            } list[i] != t list[i] list i t {
                t = list[i];
                ans++;
            } t = list[i] t list[i] list i ans++ ans System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc String[] args args
import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        Integer[] list = new Integer[n];

        for(int i = 0; i < n; i++){
            list[i] = sc.nextInt();
        }

        Arrays.sort(list);
        
        int t = list[0];
        int ans = 1;

        for(int i = 1; i < n; i++){
            if(list[i] != t){
                t = list[i];
                ans++;
            }
        }

        System.out.println(ans);

        sc.close();
    }
}