import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		ArrayList<Integer> list = new ArrayList<Integer>();
		for(int i = 0; i < N; i++) {
			list.add(sc.nextInt());
		}
		list.sort(Comparator.reverseOrder());
		int count = 0;
		for(int i = 1; i < list.size(); i++) {
			if(list.get(i) == list.get(i-1)) {
				continue;
			}else{
				count++;
			}
		}
		System.out.println(count + 1);
	}

} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		ArrayList<Integer> list = new ArrayList<Integer>();
		for(int i = 0; i < N; i++) {
			list.add(sc.nextInt());
		}
		list.sort(Comparator.reverseOrder());
		int count = 0;
		for(int i = 1; i < list.size(); i++) {
			if(list.get(i) == list.get(i-1)) {
				continue;
			}else{
				count++;
			}
		}
		System.out.println(count + 1);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		ArrayList<Integer> list = new ArrayList<Integer>();
		for(int i = 0; i < N; i++) {
			list.add(sc.nextInt());
		}
		list.sort(Comparator.reverseOrder());
		int count = 0;
		for(int i = 1; i < list.size(); i++) {
			if(list.get(i) == list.get(i-1)) {
				continue;
			}else{
				count++;
			}
		}
		System.out.println(count + 1);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		ArrayList<Integer> list = new ArrayList<Integer>();
		for(int i = 0; i < N; i++) {
			list.add(sc.nextInt());
		}
		list.sort(Comparator.reverseOrder());
		int count = 0;
		for(int i = 1; i < list.size(); i++) {
			if(list.get(i) == list.get(i-1)) {
				continue;
			}else{
				count++;
			}
		}
		System.out.println(count + 1);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() for(int i = 0; i < N; i++) {
			list.add(sc.nextInt());
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			list.add(sc.nextInt());
		} {
			list.add(sc.nextInt());
		} list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc list.sort(Comparator.reverseOrder()) list.sort list Comparator.reverseOrder() Comparator.reverseOrder Comparator int count = 0; count 0 for(int i = 1; i < list.size(); i++) {
			if(list.get(i) == list.get(i-1)) {
				continue;
			}else{
				count++;
			}
		} int i = 1; int i = 1; i 1 i < list.size() i list.size() list.size list i++ i++ i {
			if(list.get(i) == list.get(i-1)) {
				continue;
			}else{
				count++;
			}
		} {
			if(list.get(i) == list.get(i-1)) {
				continue;
			}else{
				count++;
			}
		} if(list.get(i) == list.get(i-1)) {
				continue;
			}else{
				count++;
			} list.get(i) == list.get(i-1) list.get(i) list.get list i list.get(i-1) list.get list i-1 i 1 {
				continue;
			} continue; {
				count++;
			} count++ count System.out.println(count + 1) System.out.println System.out System System.out count + 1 count 1 String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		ArrayList<Integer> list = new ArrayList<Integer>();
		for(int i = 0; i < N; i++) {
			list.add(sc.nextInt());
		}
		list.sort(Comparator.reverseOrder());
		int count = 0;
		for(int i = 1; i < list.size(); i++) {
			if(list.get(i) == list.get(i-1)) {
				continue;
			}else{
				count++;
			}
		}
		System.out.println(count + 1);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		ArrayList<Integer> list = new ArrayList<Integer>();
		for(int i = 0; i < N; i++) {
			list.add(sc.nextInt());
		}
		list.sort(Comparator.reverseOrder());
		int count = 0;
		for(int i = 1; i < list.size(); i++) {
			if(list.get(i) == list.get(i-1)) {
				continue;
			}else{
				count++;
			}
		}
		System.out.println(count + 1);
	}

} Main
import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		ArrayList<Integer> list = new ArrayList<Integer>();
		for(int i = 0; i < N; i++) {
			list.add(sc.nextInt());
		}
		list.sort(Comparator.reverseOrder());
		int count = 0;
		for(int i = 1; i < list.size(); i++) {
			if(list.get(i) == list.get(i-1)) {
				continue;
			}else{
				count++;
			}
		}
		System.out.println(count + 1);
	}

}
