import java.util.*;

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

        int N = sc.nextInt();
        int[] d = new int[110];

        for (int i=0; i<N; i++) {
            d[i] = sc.nextInt();
        }

        int[] num = new int[110];

        for (int i=0; i<N; i++) {
            num[d[i]]++;
        }

        int res = 0;
        for (int n : num) {
            res += n > 0 ? 1 : 0;
        }

        System.out.println(res);
    }
}
 import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] d = new int[110];

        for (int i=0; i<N; i++) {
            d[i] = sc.nextInt();
        }

        int[] num = new int[110];

        for (int i=0; i<N; i++) {
            num[d[i]]++;
        }

        int res = 0;
        for (int n : num) {
            res += n > 0 ? 1 : 0;
        }

        System.out.println(res);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] d = new int[110];

        for (int i=0; i<N; i++) {
            d[i] = sc.nextInt();
        }

        int[] num = new int[110];

        for (int i=0; i<N; i++) {
            num[d[i]]++;
        }

        int res = 0;
        for (int n : num) {
            res += n > 0 ? 1 : 0;
        }

        System.out.println(res);
    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] d = new int[110];

        for (int i=0; i<N; i++) {
            d[i] = sc.nextInt();
        }

        int[] num = new int[110];

        for (int i=0; i<N; i++) {
            num[d[i]]++;
        }

        int res = 0;
        for (int n : num) {
            res += n > 0 ? 1 : 0;
        }

        System.out.println(res);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] d = new int[110]; d new int[110] 110 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 int[] num = new int[110]; num new int[110] 110 for (int i=0; i<N; i++) {
            num[d[i]]++;
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            num[d[i]]++;
        } {
            num[d[i]]++;
        } num[d[i]]++ num[d[i]] num d[i] d i int res = 0; res 0 for (int n : num) {
            res += n > 0 ? 1 : 0;
        } int n num {
            res += n > 0 ? 1 : 0;
        } {
            res += n > 0 ? 1 : 0;
        } res += n > 0 ? 1 : 0 res n > 0 ? 1 : 0 n > 0 n 0 1 0 System.out.println(res) System.out.println System.out System System.out res String[] args args
import java.util.*;

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

        int N = sc.nextInt();
        int[] d = new int[110];

        for (int i=0; i<N; i++) {
            d[i] = sc.nextInt();
        }

        int[] num = new int[110];

        for (int i=0; i<N; i++) {
            num[d[i]]++;
        }

        int res = 0;
        for (int n : num) {
            res += n > 0 ? 1 : 0;
        }

        System.out.println(res);
    }
}

