import java.util.*;

public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();

        final int n = sc.nextInt();
        int[] inputNumbers = new int[n];
        int result = 1;

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

        Arrays.sort(inputNumbers);

        for (int i = 1; i < inputNumbers.length; i++) {
            if (inputNumbers[i] > inputNumbers[i - 1])
                result++;
        }
        System.out.println(result);
    }
} import java.util.*; util.* java public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();

        final int n = sc.nextInt();
        int[] inputNumbers = new int[n];
        int result = 1;

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

        Arrays.sort(inputNumbers);

        for (int i = 1; i < inputNumbers.length; i++) {
            if (inputNumbers[i] > inputNumbers[i - 1])
                result++;
        }
        System.out.println(result);
    }
} Main public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();

        final int n = sc.nextInt();
        int[] inputNumbers = new int[n];
        int result = 1;

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

        Arrays.sort(inputNumbers);

        for (int i = 1; i < inputNumbers.length; i++) {
            if (inputNumbers[i] > inputNumbers[i - 1])
                result++;
        }
        System.out.println(result);
    } main {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();

        final int n = sc.nextInt();
        int[] inputNumbers = new int[n];
        int result = 1;

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

        Arrays.sort(inputNumbers);

        for (int i = 1; i < inputNumbers.length; i++) {
            if (inputNumbers[i] > inputNumbers[i - 1])
                result++;
        }
        System.out.println(result);
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] inputNumbers = new int[n]; inputNumbers new int[n] n int result = 1; result 1 for (int i = 0; i < n; i++) {
            inputNumbers[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            inputNumbers[i] = sc.nextInt();
        } {
            inputNumbers[i] = sc.nextInt();
        } inputNumbers[i] = sc.nextInt() inputNumbers[i] inputNumbers i sc.nextInt() sc.nextInt sc sc.close() sc.close sc Arrays.sort(inputNumbers) Arrays.sort Arrays inputNumbers for (int i = 1; i < inputNumbers.length; i++) {
            if (inputNumbers[i] > inputNumbers[i - 1])
                result++;
        } int i = 1; int i = 1; i 1 i < inputNumbers.length i inputNumbers.length inputNumbers inputNumbers.length i++ i++ i {
            if (inputNumbers[i] > inputNumbers[i - 1])
                result++;
        } {
            if (inputNumbers[i] > inputNumbers[i - 1])
                result++;
        } if (inputNumbers[i] > inputNumbers[i - 1])
                result++; inputNumbers[i] > inputNumbers[i - 1] inputNumbers[i] inputNumbers i inputNumbers[i - 1] inputNumbers i - 1 i 1 result++ result System.out.println(result) System.out.println System.out System System.out result final String[] args args public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();

        final int n = sc.nextInt();
        int[] inputNumbers = new int[n];
        int result = 1;

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

        Arrays.sort(inputNumbers);

        for (int i = 1; i < inputNumbers.length; i++) {
            if (inputNumbers[i] > inputNumbers[i - 1])
                result++;
        }
        System.out.println(result);
    }
} public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();

        final int n = sc.nextInt();
        int[] inputNumbers = new int[n];
        int result = 1;

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

        Arrays.sort(inputNumbers);

        for (int i = 1; i < inputNumbers.length; i++) {
            if (inputNumbers[i] > inputNumbers[i - 1])
                result++;
        }
        System.out.println(result);
    }
} Main
import java.util.*;

public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        // 整数の入力
        // final int a = sc.nextInt();
        // 文字列の入力
        // final String s1 = sc.next();

        final int n = sc.nextInt();
        int[] inputNumbers = new int[n];
        int result = 1;

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

        Arrays.sort(inputNumbers);

        for (int i = 1; i < inputNumbers.length; i++) {
            if (inputNumbers[i] > inputNumbers[i - 1])
                result++;
        }
        System.out.println(result);
    }
}