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

public class Main{
	public static void main(String[] args)throws Exception {
		Scanner scan = new Scanner(System.in);
		int cnt = scan.nextInt();
		int moch[] = new int[cnt];
		int num = 0;
		for(int i = 0;i < cnt;i++) {
			moch[i] = scan.nextInt();
		}
		Arrays.sort(moch);
		for(int i = 0;i < cnt-1;i++) {
			if(moch[i] != moch[i+1]) {
				num++;
			}
		}
		System.out.println(num+1);

		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)throws Exception {
		Scanner scan = new Scanner(System.in);
		int cnt = scan.nextInt();
		int moch[] = new int[cnt];
		int num = 0;
		for(int i = 0;i < cnt;i++) {
			moch[i] = scan.nextInt();
		}
		Arrays.sort(moch);
		for(int i = 0;i < cnt-1;i++) {
			if(moch[i] != moch[i+1]) {
				num++;
			}
		}
		System.out.println(num+1);

		scan.close();
	}
} Main public static void main(String[] args)throws Exception {
		Scanner scan = new Scanner(System.in);
		int cnt = scan.nextInt();
		int moch[] = new int[cnt];
		int num = 0;
		for(int i = 0;i < cnt;i++) {
			moch[i] = scan.nextInt();
		}
		Arrays.sort(moch);
		for(int i = 0;i < cnt-1;i++) {
			if(moch[i] != moch[i+1]) {
				num++;
			}
		}
		System.out.println(num+1);

		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);
		int cnt = scan.nextInt();
		int moch[] = new int[cnt];
		int num = 0;
		for(int i = 0;i < cnt;i++) {
			moch[i] = scan.nextInt();
		}
		Arrays.sort(moch);
		for(int i = 0;i < cnt-1;i++) {
			if(moch[i] != moch[i+1]) {
				num++;
			}
		}
		System.out.println(num+1);

		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int cnt = scan.nextInt(); cnt scan.nextInt() scan.nextInt scan int moch[] = new int[cnt]; moch new int[cnt] cnt int num = 0; num 0 for(int i = 0;i < cnt;i++) {
			moch[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < cnt i cnt i++ i++ i {
			moch[i] = scan.nextInt();
		} {
			moch[i] = scan.nextInt();
		} moch[i] = scan.nextInt() moch[i] moch i scan.nextInt() scan.nextInt scan Arrays.sort(moch) Arrays.sort Arrays moch for(int i = 0;i < cnt-1;i++) {
			if(moch[i] != moch[i+1]) {
				num++;
			}
		} int i = 0; int i = 0; i 0 i < cnt-1 i cnt-1 cnt 1 i++ i++ i {
			if(moch[i] != moch[i+1]) {
				num++;
			}
		} {
			if(moch[i] != moch[i+1]) {
				num++;
			}
		} if(moch[i] != moch[i+1]) {
				num++;
			} moch[i] != moch[i+1] moch[i] moch i moch[i+1] moch i+1 i 1 {
				num++;
			} num++ num System.out.println(num+1) System.out.println System.out System System.out num+1 num 1 scan.close() scan.close scan String[] args args public class Main{
	public static void main(String[] args)throws Exception {
		Scanner scan = new Scanner(System.in);
		int cnt = scan.nextInt();
		int moch[] = new int[cnt];
		int num = 0;
		for(int i = 0;i < cnt;i++) {
			moch[i] = scan.nextInt();
		}
		Arrays.sort(moch);
		for(int i = 0;i < cnt-1;i++) {
			if(moch[i] != moch[i+1]) {
				num++;
			}
		}
		System.out.println(num+1);

		scan.close();
	}
} public class Main{
	public static void main(String[] args)throws Exception {
		Scanner scan = new Scanner(System.in);
		int cnt = scan.nextInt();
		int moch[] = new int[cnt];
		int num = 0;
		for(int i = 0;i < cnt;i++) {
			moch[i] = scan.nextInt();
		}
		Arrays.sort(moch);
		for(int i = 0;i < cnt-1;i++) {
			if(moch[i] != moch[i+1]) {
				num++;
			}
		}
		System.out.println(num+1);

		scan.close();
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main{
	public static void main(String[] args)throws Exception {
		Scanner scan = new Scanner(System.in);
		int cnt = scan.nextInt();
		int moch[] = new int[cnt];
		int num = 0;
		for(int i = 0;i < cnt;i++) {
			moch[i] = scan.nextInt();
		}
		Arrays.sort(moch);
		for(int i = 0;i < cnt-1;i++) {
			if(moch[i] != moch[i+1]) {
				num++;
			}
		}
		System.out.println(num+1);

		scan.close();
	}
}