import java.util.*;
public class Main {
	static int ans;
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		List<Integer> list = new ArrayList<Integer>();
		for(int i = 0;i < n;i++) {
			boolean has = false;
			int d = sc.nextInt();
			for(int k:list) {
				if(d == k) {
					has = true;
					break;
				}
			}
			if(!has) {
				ans++;
				list.add(d);
			}
		}
		System.out.println(ans);
	}
} import java.util.*; util.* java public class Main {
	static int ans;
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		List<Integer> list = new ArrayList<Integer>();
		for(int i = 0;i < n;i++) {
			boolean has = false;
			int d = sc.nextInt();
			for(int k:list) {
				if(d == k) {
					has = true;
					break;
				}
			}
			if(!has) {
				ans++;
				list.add(d);
			}
		}
		System.out.println(ans);
	}
} Main static int ans; ans public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		List<Integer> list = new ArrayList<Integer>();
		for(int i = 0;i < n;i++) {
			boolean has = false;
			int d = sc.nextInt();
			for(int k:list) {
				if(d == k) {
					has = true;
					break;
				}
			}
			if(!has) {
				ans++;
				list.add(d);
			}
		}
		System.out.println(ans);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		List<Integer> list = new ArrayList<Integer>();
		for(int i = 0;i < n;i++) {
			boolean has = false;
			int d = sc.nextInt();
			for(int k:list) {
				if(d == k) {
					has = true;
					break;
				}
			}
			if(!has) {
				ans++;
				list.add(d);
			}
		}
		System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() for(int i = 0;i < n;i++) {
			boolean has = false;
			int d = sc.nextInt();
			for(int k:list) {
				if(d == k) {
					has = true;
					break;
				}
			}
			if(!has) {
				ans++;
				list.add(d);
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			boolean has = false;
			int d = sc.nextInt();
			for(int k:list) {
				if(d == k) {
					has = true;
					break;
				}
			}
			if(!has) {
				ans++;
				list.add(d);
			}
		} {
			boolean has = false;
			int d = sc.nextInt();
			for(int k:list) {
				if(d == k) {
					has = true;
					break;
				}
			}
			if(!has) {
				ans++;
				list.add(d);
			}
		} boolean has = false; has false int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc for(int k:list) {
				if(d == k) {
					has = true;
					break;
				}
			} int k list {
				if(d == k) {
					has = true;
					break;
				}
			} {
				if(d == k) {
					has = true;
					break;
				}
			} if(d == k) {
					has = true;
					break;
				} d == k d k {
					has = true;
					break;
				} has = true has true break; if(!has) {
				ans++;
				list.add(d);
			} !has has {
				ans++;
				list.add(d);
			} ans++ ans list.add(d) list.add list d System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	static int ans;
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		List<Integer> list = new ArrayList<Integer>();
		for(int i = 0;i < n;i++) {
			boolean has = false;
			int d = sc.nextInt();
			for(int k:list) {
				if(d == k) {
					has = true;
					break;
				}
			}
			if(!has) {
				ans++;
				list.add(d);
			}
		}
		System.out.println(ans);
	}
} public class Main {
	static int ans;
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		List<Integer> list = new ArrayList<Integer>();
		for(int i = 0;i < n;i++) {
			boolean has = false;
			int d = sc.nextInt();
			for(int k:list) {
				if(d == k) {
					has = true;
					break;
				}
			}
			if(!has) {
				ans++;
				list.add(d);
			}
		}
		System.out.println(ans);
	}
} Main
import java.util.*;
public class Main {
	static int ans;
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		List<Integer> list = new ArrayList<Integer>();
		for(int i = 0;i < n;i++) {
			boolean has = false;
			int d = sc.nextInt();
			for(int k:list) {
				if(d == k) {
					has = true;
					break;
				}
			}
			if(!has) {
				ans++;
				list.add(d);
			}
		}
		System.out.println(ans);
	}
}