import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] moti = new int[num];
        int ans = 1;
        for(int i = 0;i < num;i++){
            moti[i] = sc.nextInt();
        }
        Arrays.sort(moti);
        for(int i = 0;i < num-1;i++){
            if(moti[i] == moti[i+1])
            continue;
            ans++;
        }

        System.out.println(ans);
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] moti = new int[num];
        int ans = 1;
        for(int i = 0;i < num;i++){
            moti[i] = sc.nextInt();
        }
        Arrays.sort(moti);
        for(int i = 0;i < num-1;i++){
            if(moti[i] == moti[i+1])
            continue;
            ans++;
        }

        System.out.println(ans);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] moti = new int[num];
        int ans = 1;
        for(int i = 0;i < num;i++){
            moti[i] = sc.nextInt();
        }
        Arrays.sort(moti);
        for(int i = 0;i < num-1;i++){
            if(moti[i] == moti[i+1])
            continue;
            ans++;
        }

        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] moti = new int[num];
        int ans = 1;
        for(int i = 0;i < num;i++){
            moti[i] = sc.nextInt();
        }
        Arrays.sort(moti);
        for(int i = 0;i < num-1;i++){
            if(moti[i] == moti[i+1])
            continue;
            ans++;
        }

        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int[] moti = new int[num]; moti new int[num] num int ans = 1; ans 1 for(int i = 0;i < num;i++){
            moti[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
            moti[i] = sc.nextInt();
        } {
            moti[i] = sc.nextInt();
        } moti[i] = sc.nextInt() moti[i] moti i sc.nextInt() sc.nextInt sc Arrays.sort(moti) Arrays.sort Arrays moti for(int i = 0;i < num-1;i++){
            if(moti[i] == moti[i+1])
            continue;
            ans++;
        } int i = 0; int i = 0; i 0 i < num-1 i num-1 num 1 i++ i++ i {
            if(moti[i] == moti[i+1])
            continue;
            ans++;
        } {
            if(moti[i] == moti[i+1])
            continue;
            ans++;
        } if(moti[i] == moti[i+1])
            continue; moti[i] == moti[i+1] moti[i] moti i moti[i+1] moti i+1 i 1 continue; ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;

class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int[] moti = new int[num];
        int ans = 1;
        for(int i = 0;i < num;i++){
            moti[i] = sc.nextInt();
        }
        Arrays.sort(moti);
        for(int i = 0;i < num-1;i++){
            if(moti[i] == moti[i+1])
            continue;
            ans++;
        }

        System.out.println(ans);
    }
}