import java.util.*;
public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[]d = new int[N];

    for(int i=0; i<N; i++){
        d[i] = sc.nextInt();
}
    ArrayList<Integer>D = new ArrayList<>();    
    for(int i=0; i<N; i++){
        if(!D.contains(d[i])){
            D.add(d[i]);
        }    
    }
		System.out.println(D.size());
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[]d = new int[N];

    for(int i=0; i<N; i++){
        d[i] = sc.nextInt();
}
    ArrayList<Integer>D = new ArrayList<>();    
    for(int i=0; i<N; i++){
        if(!D.contains(d[i])){
            D.add(d[i]);
        }    
    }
		System.out.println(D.size());
    }
} Main public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[]d = new int[N];

    for(int i=0; i<N; i++){
        d[i] = sc.nextInt();
}
    ArrayList<Integer>D = new ArrayList<>();    
    for(int i=0; i<N; i++){
        if(!D.contains(d[i])){
            D.add(d[i]);
        }    
    }
		System.out.println(D.size());
    } main {
    
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[]d = new int[N];

    for(int i=0; i<N; i++){
        d[i] = sc.nextInt();
}
    ArrayList<Integer>D = new ArrayList<>();    
    for(int i=0; i<N; i++){
        if(!D.contains(d[i])){
            D.add(d[i]);
        }    
    }
		System.out.println(D.size());
    } 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[N]; d new int[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 ArrayList<Integer>D = new ArrayList<>(); D new ArrayList<>() for(int i=0; i<N; i++){
        if(!D.contains(d[i])){
            D.add(d[i]);
        }    
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
        if(!D.contains(d[i])){
            D.add(d[i]);
        }    
    } {
        if(!D.contains(d[i])){
            D.add(d[i]);
        }    
    } if(!D.contains(d[i])){
            D.add(d[i]);
        } !D.contains(d[i]) D.contains(d[i]) D.contains D d[i] d i {
            D.add(d[i]);
        } D.add(d[i]) D.add D d[i] d i System.out.println(D.size()) System.out.println System.out System System.out D.size() D.size D String[] args args public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[]d = new int[N];

    for(int i=0; i<N; i++){
        d[i] = sc.nextInt();
}
    ArrayList<Integer>D = new ArrayList<>();    
    for(int i=0; i<N; i++){
        if(!D.contains(d[i])){
            D.add(d[i]);
        }    
    }
		System.out.println(D.size());
    }
} public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[]d = new int[N];

    for(int i=0; i<N; i++){
        d[i] = sc.nextInt();
}
    ArrayList<Integer>D = new ArrayList<>();    
    for(int i=0; i<N; i++){
        if(!D.contains(d[i])){
            D.add(d[i]);
        }    
    }
		System.out.println(D.size());
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args){
    
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int[]d = new int[N];

    for(int i=0; i<N; i++){
        d[i] = sc.nextInt();
}
    ArrayList<Integer>D = new ArrayList<>();    
    for(int i=0; i<N; i++){
        if(!D.contains(d[i])){
            D.add(d[i]);
        }    
    }
		System.out.println(D.size());
    }
}
