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 = sc.nextInt();
        Integer d[] = new Integer[N];
        
        for (int i = 0; i < N; i++) {
            d[i] = sc.nextInt();
        }
        
        Arrays.sort(d, Comparator.reverseOrder());
        
        int a = 0;
        int cnt = 0;
        
        for (int i = 0; i < N; i++) {
            if (a != d[i]) {
                cnt++;
            }
            a = d[i];
        }
        
        System.out.println(cnt);
    }
} 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 = sc.nextInt();
        Integer d[] = new Integer[N];
        
        for (int i = 0; i < N; i++) {
            d[i] = sc.nextInt();
        }
        
        Arrays.sort(d, Comparator.reverseOrder());
        
        int a = 0;
        int cnt = 0;
        
        for (int i = 0; i < N; i++) {
            if (a != d[i]) {
                cnt++;
            }
            a = d[i];
        }
        
        System.out.println(cnt);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        Integer d[] = new Integer[N];
        
        for (int i = 0; i < N; i++) {
            d[i] = sc.nextInt();
        }
        
        Arrays.sort(d, Comparator.reverseOrder());
        
        int a = 0;
        int cnt = 0;
        
        for (int i = 0; i < N; i++) {
            if (a != d[i]) {
                cnt++;
            }
            a = d[i];
        }
        
        System.out.println(cnt);
    } main {
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        Integer d[] = new Integer[N];
        
        for (int i = 0; i < N; i++) {
            d[i] = sc.nextInt();
        }
        
        Arrays.sort(d, Comparator.reverseOrder());
        
        int a = 0;
        int cnt = 0;
        
        for (int i = 0; i < N; i++) {
            if (a != d[i]) {
                cnt++;
            }
            a = d[i];
        }
        
        System.out.println(cnt);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc Integer d[] = new Integer[N]; d new Integer[N] N for (int i = 0; i < N; i++) {
            d[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            d[i] = sc.nextInt();
        } {
            d[i] = sc.nextInt();
        } d[i] = sc.nextInt() d[i] d i sc.nextInt() sc.nextInt sc Arrays.sort(d, Comparator.reverseOrder()) Arrays.sort Arrays d Comparator.reverseOrder() Comparator.reverseOrder Comparator int a = 0; a 0 int cnt = 0; cnt 0 for (int i = 0; i < N; i++) {
            if (a != d[i]) {
                cnt++;
            }
            a = d[i];
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            if (a != d[i]) {
                cnt++;
            }
            a = d[i];
        } {
            if (a != d[i]) {
                cnt++;
            }
            a = d[i];
        } if (a != d[i]) {
                cnt++;
            } a != d[i] a d[i] d i {
                cnt++;
            } cnt++ cnt a = d[i] a d[i] d i System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        Integer d[] = new Integer[N];
        
        for (int i = 0; i < N; i++) {
            d[i] = sc.nextInt();
        }
        
        Arrays.sort(d, Comparator.reverseOrder());
        
        int a = 0;
        int cnt = 0;
        
        for (int i = 0; i < N; i++) {
            if (a != d[i]) {
                cnt++;
            }
            a = d[i];
        }
        
        System.out.println(cnt);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int N = sc.nextInt();
        Integer d[] = new Integer[N];
        
        for (int i = 0; i < N; i++) {
            d[i] = sc.nextInt();
        }
        
        Arrays.sort(d, Comparator.reverseOrder());
        
        int a = 0;
        int cnt = 0;
        
        for (int i = 0; i < N; i++) {
            if (a != d[i]) {
                cnt++;
            }
            a = d[i];
        }
        
        System.out.println(cnt);
    }
} 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 = sc.nextInt();
        Integer d[] = new Integer[N];
        
        for (int i = 0; i < N; i++) {
            d[i] = sc.nextInt();
        }
        
        Arrays.sort(d, Comparator.reverseOrder());
        
        int a = 0;
        int cnt = 0;
        
        for (int i = 0; i < N; i++) {
            if (a != d[i]) {
                cnt++;
            }
            a = d[i];
        }
        
        System.out.println(cnt);
    }
}