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

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            new Main().solve(sc);
        }
    }

    void solve(Scanner sc) {
        int n = sc.nextInt();
        int[] ds = new int[n];
        for (int i = 0; i < n; i++) {
            ds[i] = sc.nextInt();
        }

        Arrays.sort(ds);
        int ans = 0;
        int tmp = 0;
        for (int d : ds) {
            if (d != tmp) {
                ans++;
                tmp = d;
            }
        }
        System.out.println(ans);
    }
} 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 sc = new Scanner(System.in);) {
            new Main().solve(sc);
        }
    }

    void solve(Scanner sc) {
        int n = sc.nextInt();
        int[] ds = new int[n];
        for (int i = 0; i < n; i++) {
            ds[i] = sc.nextInt();
        }

        Arrays.sort(ds);
        int ans = 0;
        int tmp = 0;
        for (int d : ds) {
            if (d != tmp) {
                ans++;
                tmp = d;
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            new Main().solve(sc);
        }
    } main {
        try (Scanner sc = new Scanner(System.in);) {
            new Main().solve(sc);
        }
    } try (Scanner sc = new Scanner(System.in);) {
            new Main().solve(sc);
        } {
            new Main().solve(sc);
        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) new Main().solve(sc) new Main().solve new Main() sc String[] args args void solve(Scanner sc) {
        int n = sc.nextInt();
        int[] ds = new int[n];
        for (int i = 0; i < n; i++) {
            ds[i] = sc.nextInt();
        }

        Arrays.sort(ds);
        int ans = 0;
        int tmp = 0;
        for (int d : ds) {
            if (d != tmp) {
                ans++;
                tmp = d;
            }
        }
        System.out.println(ans);
    } solve {
        int n = sc.nextInt();
        int[] ds = new int[n];
        for (int i = 0; i < n; i++) {
            ds[i] = sc.nextInt();
        }

        Arrays.sort(ds);
        int ans = 0;
        int tmp = 0;
        for (int d : ds) {
            if (d != tmp) {
                ans++;
                tmp = d;
            }
        }
        System.out.println(ans);
    } int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] ds = new int[n]; ds new int[n] n for (int i = 0; i < n; i++) {
            ds[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            ds[i] = sc.nextInt();
        } {
            ds[i] = sc.nextInt();
        } ds[i] = sc.nextInt() ds[i] ds i sc.nextInt() sc.nextInt sc Arrays.sort(ds) Arrays.sort Arrays ds int ans = 0; ans 0 int tmp = 0; tmp 0 for (int d : ds) {
            if (d != tmp) {
                ans++;
                tmp = d;
            }
        } int d ds {
            if (d != tmp) {
                ans++;
                tmp = d;
            }
        } {
            if (d != tmp) {
                ans++;
                tmp = d;
            }
        } if (d != tmp) {
                ans++;
                tmp = d;
            } d != tmp d tmp {
                ans++;
                tmp = d;
            } ans++ ans tmp = d tmp d System.out.println(ans) System.out.println System.out System System.out ans Scanner sc sc public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            new Main().solve(sc);
        }
    }

    void solve(Scanner sc) {
        int n = sc.nextInt();
        int[] ds = new int[n];
        for (int i = 0; i < n; i++) {
            ds[i] = sc.nextInt();
        }

        Arrays.sort(ds);
        int ans = 0;
        int tmp = 0;
        for (int d : ds) {
            if (d != tmp) {
                ans++;
                tmp = d;
            }
        }
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            new Main().solve(sc);
        }
    }

    void solve(Scanner sc) {
        int n = sc.nextInt();
        int[] ds = new int[n];
        for (int i = 0; i < n; i++) {
            ds[i] = sc.nextInt();
        }

        Arrays.sort(ds);
        int ans = 0;
        int tmp = 0;
        for (int d : ds) {
            if (d != tmp) {
                ans++;
                tmp = d;
            }
        }
        System.out.println(ans);
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in);) {
            new Main().solve(sc);
        }
    }

    void solve(Scanner sc) {
        int n = sc.nextInt();
        int[] ds = new int[n];
        for (int i = 0; i < n; i++) {
            ds[i] = sc.nextInt();
        }

        Arrays.sort(ds);
        int ans = 0;
        int tmp = 0;
        for (int d : ds) {
            if (d != tmp) {
                ans++;
                tmp = d;
            }
        }
        System.out.println(ans);
    }
}