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

public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] d = new int[N];
            for (int i = 0; i < N; i++) {
                d[i] = in.nextInt();
            }

            Arrays.sort(d);

            int count = 1;
            for (int i = 1; i < N; i++) {
                if (d[i - 1] < d[i]) {
                    count++;
                }
            }

            System.out.println(count);
        }
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] d = new int[N];
            for (int i = 0; i < N; i++) {
                d[i] = in.nextInt();
            }

            Arrays.sort(d);

            int count = 1;
            for (int i = 1; i < N; i++) {
                if (d[i - 1] < d[i]) {
                    count++;
                }
            }

            System.out.println(count);
        }
    }
} Main public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] d = new int[N];
            for (int i = 0; i < N; i++) {
                d[i] = in.nextInt();
            }

            Arrays.sort(d);

            int count = 1;
            for (int i = 1; i < N; i++) {
                if (d[i - 1] < d[i]) {
                    count++;
                }
            }

            System.out.println(count);
        }
    } main {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] d = new int[N];
            for (int i = 0; i < N; i++) {
                d[i] = in.nextInt();
            }

            Arrays.sort(d);

            int count = 1;
            for (int i = 1; i < N; i++) {
                if (d[i - 1] < d[i]) {
                    count++;
                }
            }

            System.out.println(count);
        }
    } try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] d = new int[N];
            for (int i = 0; i < N; i++) {
                d[i] = in.nextInt();
            }

            Arrays.sort(d);

            int count = 1;
            for (int i = 1; i < N; i++) {
                if (d[i - 1] < d[i]) {
                    count++;
                }
            }

            System.out.println(count);
        } {
            int N = in.nextInt();
            int[] d = new int[N];
            for (int i = 0; i < N; i++) {
                d[i] = in.nextInt();
            }

            Arrays.sort(d);

            int count = 1;
            for (int i = 1; i < N; i++) {
                if (d[i - 1] < d[i]) {
                    count++;
                }
            }

            System.out.println(count);
        } Scanner in = new Scanner(System.in) Scanner in = new Scanner(System.in) new Scanner(System.in) int N = in.nextInt(); N in.nextInt() in.nextInt in int[] d = new int[N]; d new int[N] N for (int i = 0; i < N; i++) {
                d[i] = in.nextInt();
            } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
                d[i] = in.nextInt();
            } {
                d[i] = in.nextInt();
            } d[i] = in.nextInt() d[i] d i in.nextInt() in.nextInt in Arrays.sort(d) Arrays.sort Arrays d int count = 1; count 1 for (int i = 1; i < N; i++) {
                if (d[i - 1] < d[i]) {
                    count++;
                }
            } int i = 1; int i = 1; i 1 i < N i N i++ i++ i {
                if (d[i - 1] < d[i]) {
                    count++;
                }
            } {
                if (d[i - 1] < d[i]) {
                    count++;
                }
            } if (d[i - 1] < d[i]) {
                    count++;
                } d[i - 1] < d[i] d[i - 1] d i - 1 i 1 d[i] d i {
                    count++;
                } count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] d = new int[N];
            for (int i = 0; i < N; i++) {
                d[i] = in.nextInt();
            }

            Arrays.sort(d);

            int count = 1;
            for (int i = 1; i < N; i++) {
                if (d[i - 1] < d[i]) {
                    count++;
                }
            }

            System.out.println(count);
        }
    }
} public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] d = new int[N];
            for (int i = 0; i < N; i++) {
                d[i] = in.nextInt();
            }

            Arrays.sort(d);

            int count = 1;
            for (int i = 1; i < N; i++) {
                if (d[i - 1] < d[i]) {
                    count++;
                }
            }

            System.out.println(count);
        }
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner in = new Scanner(System.in)) {
            int N = in.nextInt();
            int[] d = new int[N];
            for (int i = 0; i < N; i++) {
                d[i] = in.nextInt();
            }

            Arrays.sort(d);

            int count = 1;
            for (int i = 1; i < N; i++) {
                if (d[i - 1] < d[i]) {
                    count++;
                }
            }

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