import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] d = new int[N];
		for(int i = 0; i < N; i++) {
			d[i] = stdIn.nextInt();
		}
		Arrays.sort(d);
		
		int count = 0;
		for(int i = 0; i < N; i++) {
			if(i >= 1 && d[i] != d[i-1]) {
				count++;
			}
			else if(i == 0) {
				count++;
			}
		}
		
		System.out.println(count);

	}

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

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] d = new int[N];
		for(int i = 0; i < N; i++) {
			d[i] = stdIn.nextInt();
		}
		Arrays.sort(d);
		
		int count = 0;
		for(int i = 0; i < N; i++) {
			if(i >= 1 && d[i] != d[i-1]) {
				count++;
			}
			else if(i == 0) {
				count++;
			}
		}
		
		System.out.println(count);

	}

} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] d = new int[N];
		for(int i = 0; i < N; i++) {
			d[i] = stdIn.nextInt();
		}
		Arrays.sort(d);
		
		int count = 0;
		for(int i = 0; i < N; i++) {
			if(i >= 1 && d[i] != d[i-1]) {
				count++;
			}
			else if(i == 0) {
				count++;
			}
		}
		
		System.out.println(count);

	} main {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] d = new int[N];
		for(int i = 0; i < N; i++) {
			d[i] = stdIn.nextInt();
		}
		Arrays.sort(d);
		
		int count = 0;
		for(int i = 0; i < N; i++) {
			if(i >= 1 && d[i] != d[i-1]) {
				count++;
			}
			else if(i == 0) {
				count++;
			}
		}
		
		System.out.println(count);

	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int N = stdIn.nextInt(); N stdIn.nextInt() stdIn.nextInt stdIn int[] d = new int[N]; d new int[N] N for(int i = 0; i < N; i++) {
			d[i] = stdIn.nextInt();
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			d[i] = stdIn.nextInt();
		} {
			d[i] = stdIn.nextInt();
		} d[i] = stdIn.nextInt() d[i] d i stdIn.nextInt() stdIn.nextInt stdIn Arrays.sort(d) Arrays.sort Arrays d int count = 0; count 0 for(int i = 0; i < N; i++) {
			if(i >= 1 && d[i] != d[i-1]) {
				count++;
			}
			else if(i == 0) {
				count++;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			if(i >= 1 && d[i] != d[i-1]) {
				count++;
			}
			else if(i == 0) {
				count++;
			}
		} {
			if(i >= 1 && d[i] != d[i-1]) {
				count++;
			}
			else if(i == 0) {
				count++;
			}
		} if(i >= 1 && d[i] != d[i-1]) {
				count++;
			}
			else if(i == 0) {
				count++;
			} i >= 1 && d[i] != d[i-1] i >= 1 i 1 d[i] != d[i-1] d[i] d i d[i-1] d i-1 i 1 {
				count++;
			} count++ count if(i == 0) {
				count++;
			} i == 0 i 0 {
				count++;
			} count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] d = new int[N];
		for(int i = 0; i < N; i++) {
			d[i] = stdIn.nextInt();
		}
		Arrays.sort(d);
		
		int count = 0;
		for(int i = 0; i < N; i++) {
			if(i >= 1 && d[i] != d[i-1]) {
				count++;
			}
			else if(i == 0) {
				count++;
			}
		}
		
		System.out.println(count);

	}

} public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] d = new int[N];
		for(int i = 0; i < N; i++) {
			d[i] = stdIn.nextInt();
		}
		Arrays.sort(d);
		
		int count = 0;
		for(int i = 0; i < N; i++) {
			if(i >= 1 && d[i] != d[i-1]) {
				count++;
			}
			else if(i == 0) {
				count++;
			}
		}
		
		System.out.println(count);

	}

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

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		int N = stdIn.nextInt();
		int[] d = new int[N];
		for(int i = 0; i < N; i++) {
			d[i] = stdIn.nextInt();
		}
		Arrays.sort(d);
		
		int count = 0;
		for(int i = 0; i < N; i++) {
			if(i >= 1 && d[i] != d[i-1]) {
				count++;
			}
			else if(i == 0) {
				count++;
			}
		}
		
		System.out.println(count);

	}

}