import java.io.PrintWriter;
import java.lang.reflect.Array;
import java.util.*;

public class Main {

    Scanner sc = new Scanner(System.in);

    PrintWriter out = new PrintWriter(System.out);

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i=0; i<n; i++) arr[i] = sc.nextInt()*(-1);
        Arrays.sort(arr);
        for (int i=0; i<n; i++) arr[i] *= (-1);

        int ans = 1;

        for (int i=0; i<n-1; i++) {
            if (arr[i]>arr[i+1]) ans++;
        }

        out.print(ans);
        out.flush();



    }

} import java.io.PrintWriter; PrintWriter java.io import java.lang.reflect.Array; Array java.lang.reflect import java.util.*; util.* java public class Main {

    Scanner sc = new Scanner(System.in);

    PrintWriter out = new PrintWriter(System.out);

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i=0; i<n; i++) arr[i] = sc.nextInt()*(-1);
        Arrays.sort(arr);
        for (int i=0; i<n; i++) arr[i] *= (-1);

        int ans = 1;

        for (int i=0; i<n-1; i++) {
            if (arr[i]>arr[i+1]) ans++;
        }

        out.print(ans);
        out.flush();



    }

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

        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i=0; i<n; i++) arr[i] = sc.nextInt()*(-1);
        Arrays.sort(arr);
        for (int i=0; i<n; i++) arr[i] *= (-1);

        int ans = 1;

        for (int i=0; i<n-1; i++) {
            if (arr[i]>arr[i+1]) ans++;
        }

        out.print(ans);
        out.flush();



    } run {

        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i=0; i<n; i++) arr[i] = sc.nextInt()*(-1);
        Arrays.sort(arr);
        for (int i=0; i<n; i++) arr[i] *= (-1);

        int ans = 1;

        for (int i=0; i<n-1; i++) {
            if (arr[i]>arr[i+1]) ans++;
        }

        out.print(ans);
        out.flush();



    } int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] arr = new int[n]; arr new int[n] n for (int i=0; i<n; i++) arr[i] = sc.nextInt()*(-1); int i=0; int i=0; i 0 i<n i n i++ i++ i arr[i] = sc.nextInt()*(-1); arr[i] = sc.nextInt()*(-1) arr[i] arr i sc.nextInt()*(-1) sc.nextInt() sc.nextInt sc (-1) 1 Arrays.sort(arr) Arrays.sort Arrays arr for (int i=0; i<n; i++) arr[i] *= (-1); int i=0; int i=0; i 0 i<n i n i++ i++ i arr[i] *= (-1); arr[i] *= (-1) arr[i] arr i (-1) 1 int ans = 1; ans 1 for (int i=0; i<n-1; i++) {
            if (arr[i]>arr[i+1]) ans++;
        } int i=0; int i=0; i 0 i<n-1 i n-1 n 1 i++ i++ i {
            if (arr[i]>arr[i+1]) ans++;
        } {
            if (arr[i]>arr[i+1]) ans++;
        } if (arr[i]>arr[i+1]) ans++; arr[i]>arr[i+1] arr[i] arr i arr[i+1] arr i+1 i 1 ans++ ans out.print(ans) out.print out ans out.flush() out.flush out public class Main {

    Scanner sc = new Scanner(System.in);

    PrintWriter out = new PrintWriter(System.out);

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i=0; i<n; i++) arr[i] = sc.nextInt()*(-1);
        Arrays.sort(arr);
        for (int i=0; i<n; i++) arr[i] *= (-1);

        int ans = 1;

        for (int i=0; i<n-1; i++) {
            if (arr[i]>arr[i+1]) ans++;
        }

        out.print(ans);
        out.flush();



    }

} public class Main {

    Scanner sc = new Scanner(System.in);

    PrintWriter out = new PrintWriter(System.out);

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i=0; i<n; i++) arr[i] = sc.nextInt()*(-1);
        Arrays.sort(arr);
        for (int i=0; i<n; i++) arr[i] *= (-1);

        int ans = 1;

        for (int i=0; i<n-1; i++) {
            if (arr[i]>arr[i+1]) ans++;
        }

        out.print(ans);
        out.flush();



    }

} Main
import java.io.PrintWriter;
import java.lang.reflect.Array;
import java.util.*;

public class Main {

    Scanner sc = new Scanner(System.in);

    PrintWriter out = new PrintWriter(System.out);

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i=0; i<n; i++) arr[i] = sc.nextInt()*(-1);
        Arrays.sort(arr);
        for (int i=0; i<n; i++) arr[i] *= (-1);

        int ans = 1;

        for (int i=0; i<n-1; i++) {
            if (arr[i]>arr[i+1]) ans++;
        }

        out.print(ans);
        out.flush();



    }

}
