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

class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = Integer.parseInt(scan.nextLine());
        Integer[] d = new Integer[n];

        for (int i = 0; i < n; i++) {
            d[i] = Integer.parseInt(scan.nextLine());
        }
        Arrays.sort(d);

        int count = 0;
        for (int i = 0; i < n; i++) {
            if (i == 0 || d[i] > d[i - 1]) {
                count++;
            }
        }

        System.out.println(count);
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = Integer.parseInt(scan.nextLine());
        Integer[] d = new Integer[n];

        for (int i = 0; i < n; i++) {
            d[i] = Integer.parseInt(scan.nextLine());
        }
        Arrays.sort(d);

        int count = 0;
        for (int i = 0; i < n; i++) {
            if (i == 0 || d[i] > d[i - 1]) {
                count++;
            }
        }

        System.out.println(count);
    }
} Main public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = Integer.parseInt(scan.nextLine());
        Integer[] d = new Integer[n];

        for (int i = 0; i < n; i++) {
            d[i] = Integer.parseInt(scan.nextLine());
        }
        Arrays.sort(d);

        int count = 0;
        for (int i = 0; i < n; i++) {
            if (i == 0 || d[i] > d[i - 1]) {
                count++;
            }
        }

        System.out.println(count);
    } main {

        Scanner scan = new Scanner(System.in);
        int n = Integer.parseInt(scan.nextLine());
        Integer[] d = new Integer[n];

        for (int i = 0; i < n; i++) {
            d[i] = Integer.parseInt(scan.nextLine());
        }
        Arrays.sort(d);

        int count = 0;
        for (int i = 0; i < n; i++) {
            if (i == 0 || d[i] > d[i - 1]) {
                count++;
            }
        }

        System.out.println(count);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = Integer.parseInt(scan.nextLine()); n Integer.parseInt(scan.nextLine()) Integer.parseInt Integer scan.nextLine() scan.nextLine scan Integer[] d = new Integer[n]; d new Integer[n] n for (int i = 0; i < n; i++) {
            d[i] = Integer.parseInt(scan.nextLine());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            d[i] = Integer.parseInt(scan.nextLine());
        } {
            d[i] = Integer.parseInt(scan.nextLine());
        } d[i] = Integer.parseInt(scan.nextLine()) d[i] d i Integer.parseInt(scan.nextLine()) Integer.parseInt Integer scan.nextLine() scan.nextLine scan Arrays.sort(d) Arrays.sort Arrays d int count = 0; count 0 for (int i = 0; i < n; i++) {
            if (i == 0 || d[i] > d[i - 1]) {
                count++;
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            if (i == 0 || d[i] > d[i - 1]) {
                count++;
            }
        } {
            if (i == 0 || d[i] > d[i - 1]) {
                count++;
            }
        } if (i == 0 || d[i] > d[i - 1]) {
                count++;
            } i == 0 || d[i] > d[i - 1] i == 0 i 0 d[i] > d[i - 1] d[i] d i d[i - 1] d i - 1 i 1 {
                count++;
            } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args
import java.util.Arrays;
import java.util.Scanner;

class Main {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int n = Integer.parseInt(scan.nextLine());
        Integer[] d = new Integer[n];

        for (int i = 0; i < n; i++) {
            d[i] = Integer.parseInt(scan.nextLine());
        }
        Arrays.sort(d);

        int count = 0;
        for (int i = 0; i < n; i++) {
            if (i == 0 || d[i] > d[i - 1]) {
                count++;
            }
        }

        System.out.println(count);
    }
}