import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		 Scanner scan = new Scanner(System.in);
		 
		 int N = scan.nextInt();
		 int[] d = new int[N];
		 
		 for (int i = 0; i < N; i++) {
			 d[i] = scan.nextInt();
		 }
		 
		 Arrays.sort(d);
		 
		 int same_d = 0;
		 for (int j = 0; j < N-1; j++) {
			 if (d[j] == d[j + 1]) {
				 same_d += 1; 
			 }
		 }
		 
		 System.out.println(N - same_d);
		 
		 scan.close();
		 
	}

} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		 Scanner scan = new Scanner(System.in);
		 
		 int N = scan.nextInt();
		 int[] d = new int[N];
		 
		 for (int i = 0; i < N; i++) {
			 d[i] = scan.nextInt();
		 }
		 
		 Arrays.sort(d);
		 
		 int same_d = 0;
		 for (int j = 0; j < N-1; j++) {
			 if (d[j] == d[j + 1]) {
				 same_d += 1; 
			 }
		 }
		 
		 System.out.println(N - same_d);
		 
		 scan.close();
		 
	}

} Main public static void main(String[] args) {
		 Scanner scan = new Scanner(System.in);
		 
		 int N = scan.nextInt();
		 int[] d = new int[N];
		 
		 for (int i = 0; i < N; i++) {
			 d[i] = scan.nextInt();
		 }
		 
		 Arrays.sort(d);
		 
		 int same_d = 0;
		 for (int j = 0; j < N-1; j++) {
			 if (d[j] == d[j + 1]) {
				 same_d += 1; 
			 }
		 }
		 
		 System.out.println(N - same_d);
		 
		 scan.close();
		 
	} main {
		 Scanner scan = new Scanner(System.in);
		 
		 int N = scan.nextInt();
		 int[] d = new int[N];
		 
		 for (int i = 0; i < N; i++) {
			 d[i] = scan.nextInt();
		 }
		 
		 Arrays.sort(d);
		 
		 int same_d = 0;
		 for (int j = 0; j < N-1; j++) {
			 if (d[j] == d[j + 1]) {
				 same_d += 1; 
			 }
		 }
		 
		 System.out.println(N - same_d);
		 
		 scan.close();
		 
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int[] d = new int[N]; d new int[N] N for (int i = 0; i < N; i++) {
			 d[i] = scan.nextInt();
		 } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			 d[i] = scan.nextInt();
		 } {
			 d[i] = scan.nextInt();
		 } d[i] = scan.nextInt() d[i] d i scan.nextInt() scan.nextInt scan Arrays.sort(d) Arrays.sort Arrays d int same_d = 0; same_d 0 for (int j = 0; j < N-1; j++) {
			 if (d[j] == d[j + 1]) {
				 same_d += 1; 
			 }
		 } int j = 0; int j = 0; j 0 j < N-1 j N-1 N 1 j++ j++ j {
			 if (d[j] == d[j + 1]) {
				 same_d += 1; 
			 }
		 } {
			 if (d[j] == d[j + 1]) {
				 same_d += 1; 
			 }
		 } if (d[j] == d[j + 1]) {
				 same_d += 1; 
			 } d[j] == d[j + 1] d[j] d j d[j + 1] d j + 1 j 1 {
				 same_d += 1; 
			 } same_d += 1 same_d 1 System.out.println(N - same_d) System.out.println System.out System System.out N - same_d N same_d scan.close() scan.close scan String[] args args public class Main {

	public static void main(String[] args) {
		 Scanner scan = new Scanner(System.in);
		 
		 int N = scan.nextInt();
		 int[] d = new int[N];
		 
		 for (int i = 0; i < N; i++) {
			 d[i] = scan.nextInt();
		 }
		 
		 Arrays.sort(d);
		 
		 int same_d = 0;
		 for (int j = 0; j < N-1; j++) {
			 if (d[j] == d[j + 1]) {
				 same_d += 1; 
			 }
		 }
		 
		 System.out.println(N - same_d);
		 
		 scan.close();
		 
	}

} public class Main {

	public static void main(String[] args) {
		 Scanner scan = new Scanner(System.in);
		 
		 int N = scan.nextInt();
		 int[] d = new int[N];
		 
		 for (int i = 0; i < N; i++) {
			 d[i] = scan.nextInt();
		 }
		 
		 Arrays.sort(d);
		 
		 int same_d = 0;
		 for (int j = 0; j < N-1; j++) {
			 if (d[j] == d[j + 1]) {
				 same_d += 1; 
			 }
		 }
		 
		 System.out.println(N - same_d);
		 
		 scan.close();
		 
	}

} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		 Scanner scan = new Scanner(System.in);
		 
		 int N = scan.nextInt();
		 int[] d = new int[N];
		 
		 for (int i = 0; i < N; i++) {
			 d[i] = scan.nextInt();
		 }
		 
		 Arrays.sort(d);
		 
		 int same_d = 0;
		 for (int j = 0; j < N-1; j++) {
			 if (d[j] == d[j + 1]) {
				 same_d += 1; 
			 }
		 }
		 
		 System.out.println(N - same_d);
		 
		 scan.close();
		 
	}

}
