import java.util.Arrays;
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int N=stdIn.nextInt();
		int a[]=new int[N];
		int z=0,y=1;
		while(z<N){
			a[z]=stdIn.nextInt();
			z++;
		}z=0;
		Arrays.sort(a);
		while(z<N-1){
			if(a[z]!=a[z+1])
				y++;
			z++;
		}
		System.out.println(y);
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int N=stdIn.nextInt();
		int a[]=new int[N];
		int z=0,y=1;
		while(z<N){
			a[z]=stdIn.nextInt();
			z++;
		}z=0;
		Arrays.sort(a);
		while(z<N-1){
			if(a[z]!=a[z+1])
				y++;
			z++;
		}
		System.out.println(y);
	}
} Main public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int N=stdIn.nextInt();
		int a[]=new int[N];
		int z=0,y=1;
		while(z<N){
			a[z]=stdIn.nextInt();
			z++;
		}z=0;
		Arrays.sort(a);
		while(z<N-1){
			if(a[z]!=a[z+1])
				y++;
			z++;
		}
		System.out.println(y);
	} main {
		Scanner stdIn=new Scanner(System.in);
		int N=stdIn.nextInt();
		int a[]=new int[N];
		int z=0,y=1;
		while(z<N){
			a[z]=stdIn.nextInt();
			z++;
		}z=0;
		Arrays.sort(a);
		while(z<N-1){
			if(a[z]!=a[z+1])
				y++;
			z++;
		}
		System.out.println(y);
	} Scanner stdIn=new Scanner(System.in); stdIn new Scanner(System.in) int N=stdIn.nextInt(); N stdIn.nextInt() stdIn.nextInt stdIn int a[]=new int[N]; a new int[N] N int z=0 z 0 y=1; y 1 while(z<N){
			a[z]=stdIn.nextInt();
			z++;
		} z<N z N {
			a[z]=stdIn.nextInt();
			z++;
		} a[z]=stdIn.nextInt() a[z] a z stdIn.nextInt() stdIn.nextInt stdIn z++ z z=0 z 0 Arrays.sort(a) Arrays.sort Arrays a while(z<N-1){
			if(a[z]!=a[z+1])
				y++;
			z++;
		} z<N-1 z N-1 N 1 {
			if(a[z]!=a[z+1])
				y++;
			z++;
		} if(a[z]!=a[z+1])
				y++; a[z]!=a[z+1] a[z] a z a[z+1] a z+1 z 1 y++ y z++ z System.out.println(y) System.out.println System.out System System.out y String[] args args public class Main {
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int N=stdIn.nextInt();
		int a[]=new int[N];
		int z=0,y=1;
		while(z<N){
			a[z]=stdIn.nextInt();
			z++;
		}z=0;
		Arrays.sort(a);
		while(z<N-1){
			if(a[z]!=a[z+1])
				y++;
			z++;
		}
		System.out.println(y);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int N=stdIn.nextInt();
		int a[]=new int[N];
		int z=0,y=1;
		while(z<N){
			a[z]=stdIn.nextInt();
			z++;
		}z=0;
		Arrays.sort(a);
		while(z<N-1){
			if(a[z]!=a[z+1])
				y++;
			z++;
		}
		System.out.println(y);
	}
} Main
import java.util.Arrays;
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int N=stdIn.nextInt();
		int a[]=new int[N];
		int z=0,y=1;
		while(z<N){
			a[z]=stdIn.nextInt();
			z++;
		}z=0;
		Arrays.sort(a);
		while(z<N-1){
			if(a[z]!=a[z+1])
				y++;
			z++;
		}
		System.out.println(y);
	}
}
