import java.util.*;
import static java.lang.Math.*;

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

		// 入力
		int n = sc.nextInt();// N

		ArrayList<Integer> numList = new ArrayList<Integer>();
		for(int i = 0; i < n; i++){
			int value = sc.nextInt();
			if(!numList.contains(value)){
				numList.add(value);
			}
		}

		// 出力
		System.out.println(numList.size());
	}
}

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

		// 入力
		int n = sc.nextInt();// N

		ArrayList<Integer> numList = new ArrayList<Integer>();
		for(int i = 0; i < n; i++){
			int value = sc.nextInt();
			if(!numList.contains(value)){
				numList.add(value);
			}
		}

		// 出力
		System.out.println(numList.size());
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		// 入力
		int n = sc.nextInt();// N

		ArrayList<Integer> numList = new ArrayList<Integer>();
		for(int i = 0; i < n; i++){
			int value = sc.nextInt();
			if(!numList.contains(value)){
				numList.add(value);
			}
		}

		// 出力
		System.out.println(numList.size());
	} main {
		Scanner sc = new Scanner(System.in);

		// 入力
		int n = sc.nextInt();// N

		ArrayList<Integer> numList = new ArrayList<Integer>();
		for(int i = 0; i < n; i++){
			int value = sc.nextInt();
			if(!numList.contains(value)){
				numList.add(value);
			}
		}

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

		// 入力
		int n = sc.nextInt();// N

		ArrayList<Integer> numList = new ArrayList<Integer>();
		for(int i = 0; i < n; i++){
			int value = sc.nextInt();
			if(!numList.contains(value)){
				numList.add(value);
			}
		}

		// 出力
		System.out.println(numList.size());
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		// 入力
		int n = sc.nextInt();// N

		ArrayList<Integer> numList = new ArrayList<Integer>();
		for(int i = 0; i < n; i++){
			int value = sc.nextInt();
			if(!numList.contains(value)){
				numList.add(value);
			}
		}

		// 出力
		System.out.println(numList.size());
	}
} Main
import java.util.*;
import static java.lang.Math.*;

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

		// 入力
		int n = sc.nextInt();// N

		ArrayList<Integer> numList = new ArrayList<Integer>();
		for(int i = 0; i < n; i++){
			int value = sc.nextInt();
			if(!numList.contains(value)){
				numList.add(value);
			}
		}

		// 出力
		System.out.println(numList.size());
	}
}


