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

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

        Arrays.sort(d, Comparator.naturalOrder());

        int count = 0;
        for (int i = 0; i < N-1; i++) {
            if (d[i] != d[i+1]) {
                count++;
            }
        }
        System.out.println(count + 1);
    }
} import java.util.Arrays; Arrays java.util import java.util.Comparator; Comparator java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        Integer d[] = new Integer[N];
        for (int i = 0; i < N; i++) {
            d[i] = Integer.parseInt(sc.next());
        }

        Arrays.sort(d, Comparator.naturalOrder());

        int count = 0;
        for (int i = 0; i < N-1; i++) {
            if (d[i] != d[i+1]) {
                count++;
            }
        }
        System.out.println(count + 1);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        Integer d[] = new Integer[N];
        for (int i = 0; i < N; i++) {
            d[i] = Integer.parseInt(sc.next());
        }

        Arrays.sort(d, Comparator.naturalOrder());

        int count = 0;
        for (int i = 0; i < N-1; i++) {
            if (d[i] != d[i+1]) {
                count++;
            }
        }
        System.out.println(count + 1);
    } main {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        Integer d[] = new Integer[N];
        for (int i = 0; i < N; i++) {
            d[i] = Integer.parseInt(sc.next());
        }

        Arrays.sort(d, Comparator.naturalOrder());

        int count = 0;
        for (int i = 0; i < N-1; i++) {
            if (d[i] != d[i+1]) {
                count++;
            }
        }
        System.out.println(count + 1);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Integer d[] = new Integer[N]; d new Integer[N] N for (int i = 0; i < N; i++) {
            d[i] = Integer.parseInt(sc.next());
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            d[i] = Integer.parseInt(sc.next());
        } {
            d[i] = Integer.parseInt(sc.next());
        } d[i] = Integer.parseInt(sc.next()) d[i] d i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Arrays.sort(d, Comparator.naturalOrder()) Arrays.sort Arrays d Comparator.naturalOrder() Comparator.naturalOrder Comparator int count = 0; count 0 for (int i = 0; i < N-1; i++) {
            if (d[i] != d[i+1]) {
                count++;
            }
        } int i = 0; int i = 0; i 0 i < N-1 i N-1 N 1 i++ i++ i {
            if (d[i] != d[i+1]) {
                count++;
            }
        } {
            if (d[i] != d[i+1]) {
                count++;
            }
        } if (d[i] != d[i+1]) {
                count++;
            } d[i] != d[i+1] d[i] d i d[i+1] d i+1 i 1 {
                count++;
            } count++ count System.out.println(count + 1) System.out.println System.out System System.out count + 1 count 1 String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        Integer d[] = new Integer[N];
        for (int i = 0; i < N; i++) {
            d[i] = Integer.parseInt(sc.next());
        }

        Arrays.sort(d, Comparator.naturalOrder());

        int count = 0;
        for (int i = 0; i < N-1; i++) {
            if (d[i] != d[i+1]) {
                count++;
            }
        }
        System.out.println(count + 1);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());
        Integer d[] = new Integer[N];
        for (int i = 0; i < N; i++) {
            d[i] = Integer.parseInt(sc.next());
        }

        Arrays.sort(d, Comparator.naturalOrder());

        int count = 0;
        for (int i = 0; i < N-1; i++) {
            if (d[i] != d[i+1]) {
                count++;
            }
        }
        System.out.println(count + 1);
    }
} Main
import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

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

        Arrays.sort(d, Comparator.naturalOrder());

        int count = 0;
        for (int i = 0; i < N-1; i++) {
            if (d[i] != d[i+1]) {
                count++;
            }
        }
        System.out.println(count + 1);
    }
}
