import java.util.*;

public class Main {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int N = Integer.parseInt(sc.next());
    	Integer a[] = new Integer[N];

    	for (int i=0; i<N; i++){
    		a[i] = Integer.parseInt(sc.next());
    	}

    	List<Integer> list = new ArrayList<>();

    	for (int num: a){
    		if (!list.contains(num)){
    			list.add(num);
    		}
    	}

    	System.out.println(list.size());

    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int N = Integer.parseInt(sc.next());
    	Integer a[] = new Integer[N];

    	for (int i=0; i<N; i++){
    		a[i] = Integer.parseInt(sc.next());
    	}

    	List<Integer> list = new ArrayList<>();

    	for (int num: a){
    		if (!list.contains(num)){
    			list.add(num);
    		}
    	}

    	System.out.println(list.size());

    }
} Main public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int N = Integer.parseInt(sc.next());
    	Integer a[] = new Integer[N];

    	for (int i=0; i<N; i++){
    		a[i] = Integer.parseInt(sc.next());
    	}

    	List<Integer> list = new ArrayList<>();

    	for (int num: a){
    		if (!list.contains(num)){
    			list.add(num);
    		}
    	}

    	System.out.println(list.size());

    } main {
    	Scanner sc = new Scanner(System.in);
    	int N = Integer.parseInt(sc.next());
    	Integer a[] = new Integer[N];

    	for (int i=0; i<N; i++){
    		a[i] = Integer.parseInt(sc.next());
    	}

    	List<Integer> list = new ArrayList<>();

    	for (int num: a){
    		if (!list.contains(num)){
    			list.add(num);
    		}
    	}

    	System.out.println(list.size());

    } 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 a[] = new Integer[N]; a new Integer[N] N for (int i=0; i<N; i++){
    		a[i] = Integer.parseInt(sc.next());
    	} int i=0; int i=0; i 0 i<N i N i++ i++ i {
    		a[i] = Integer.parseInt(sc.next());
    	} {
    		a[i] = Integer.parseInt(sc.next());
    	} a[i] = Integer.parseInt(sc.next()) a[i] a i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc List<Integer> list = new ArrayList<>(); list new ArrayList<>() for (int num: a){
    		if (!list.contains(num)){
    			list.add(num);
    		}
    	} int num a {
    		if (!list.contains(num)){
    			list.add(num);
    		}
    	} {
    		if (!list.contains(num)){
    			list.add(num);
    		}
    	} if (!list.contains(num)){
    			list.add(num);
    		} !list.contains(num) list.contains(num) list.contains list num {
    			list.add(num);
    		} list.add(num) list.add list num System.out.println(list.size()) System.out.println System.out System System.out list.size() list.size list 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 a[] = new Integer[N];

    	for (int i=0; i<N; i++){
    		a[i] = Integer.parseInt(sc.next());
    	}

    	List<Integer> list = new ArrayList<>();

    	for (int num: a){
    		if (!list.contains(num)){
    			list.add(num);
    		}
    	}

    	System.out.println(list.size());

    }
} public class Main {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int N = Integer.parseInt(sc.next());
    	Integer a[] = new Integer[N];

    	for (int i=0; i<N; i++){
    		a[i] = Integer.parseInt(sc.next());
    	}

    	List<Integer> list = new ArrayList<>();

    	for (int num: a){
    		if (!list.contains(num)){
    			list.add(num);
    		}
    	}

    	System.out.println(list.size());

    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	int N = Integer.parseInt(sc.next());
    	Integer a[] = new Integer[N];

    	for (int i=0; i<N; i++){
    		a[i] = Integer.parseInt(sc.next());
    	}

    	List<Integer> list = new ArrayList<>();

    	for (int num: a){
    		if (!list.contains(num)){
    			list.add(num);
    		}
    	}

    	System.out.println(list.size());

    }
}