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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] mochiArray = new int[n];
		for(int i =0;i <n;i++) {
			mochiArray[i] = sc.nextInt();
		}
		Arrays.sort(mochiArray);
		int answer = 1;
		for(int i =1;i <n;i++) {
			if(mochiArray[i] == mochiArray[i-1]) {
				continue;
			}else {
				answer++;
			}
		}
		System.out.println(answer);
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] mochiArray = new int[n];
		for(int i =0;i <n;i++) {
			mochiArray[i] = sc.nextInt();
		}
		Arrays.sort(mochiArray);
		int answer = 1;
		for(int i =1;i <n;i++) {
			if(mochiArray[i] == mochiArray[i-1]) {
				continue;
			}else {
				answer++;
			}
		}
		System.out.println(answer);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] mochiArray = new int[n];
		for(int i =0;i <n;i++) {
			mochiArray[i] = sc.nextInt();
		}
		Arrays.sort(mochiArray);
		int answer = 1;
		for(int i =1;i <n;i++) {
			if(mochiArray[i] == mochiArray[i-1]) {
				continue;
			}else {
				answer++;
			}
		}
		System.out.println(answer);
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] mochiArray = new int[n];
		for(int i =0;i <n;i++) {
			mochiArray[i] = sc.nextInt();
		}
		Arrays.sort(mochiArray);
		int answer = 1;
		for(int i =1;i <n;i++) {
			if(mochiArray[i] == mochiArray[i-1]) {
				continue;
			}else {
				answer++;
			}
		}
		System.out.println(answer);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] mochiArray = new int[n]; mochiArray new int[n] n for(int i =0;i <n;i++) {
			mochiArray[i] = sc.nextInt();
		} int i =0; int i =0; i 0 i <n i n i++ i++ i {
			mochiArray[i] = sc.nextInt();
		} {
			mochiArray[i] = sc.nextInt();
		} mochiArray[i] = sc.nextInt() mochiArray[i] mochiArray i sc.nextInt() sc.nextInt sc Arrays.sort(mochiArray) Arrays.sort Arrays mochiArray int answer = 1; answer 1 for(int i =1;i <n;i++) {
			if(mochiArray[i] == mochiArray[i-1]) {
				continue;
			}else {
				answer++;
			}
		} int i =1; int i =1; i 1 i <n i n i++ i++ i {
			if(mochiArray[i] == mochiArray[i-1]) {
				continue;
			}else {
				answer++;
			}
		} {
			if(mochiArray[i] == mochiArray[i-1]) {
				continue;
			}else {
				answer++;
			}
		} if(mochiArray[i] == mochiArray[i-1]) {
				continue;
			}else {
				answer++;
			} mochiArray[i] == mochiArray[i-1] mochiArray[i] mochiArray i mochiArray[i-1] mochiArray i-1 i 1 {
				continue;
			} continue; {
				answer++;
			} answer++ answer System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] mochiArray = new int[n];
		for(int i =0;i <n;i++) {
			mochiArray[i] = sc.nextInt();
		}
		Arrays.sort(mochiArray);
		int answer = 1;
		for(int i =1;i <n;i++) {
			if(mochiArray[i] == mochiArray[i-1]) {
				continue;
			}else {
				answer++;
			}
		}
		System.out.println(answer);
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] mochiArray = new int[n];
		for(int i =0;i <n;i++) {
			mochiArray[i] = sc.nextInt();
		}
		Arrays.sort(mochiArray);
		int answer = 1;
		for(int i =1;i <n;i++) {
			if(mochiArray[i] == mochiArray[i-1]) {
				continue;
			}else {
				answer++;
			}
		}
		System.out.println(answer);
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[] mochiArray = new int[n];
		for(int i =0;i <n;i++) {
			mochiArray[i] = sc.nextInt();
		}
		Arrays.sort(mochiArray);
		int answer = 1;
		for(int i =1;i <n;i++) {
			if(mochiArray[i] == mochiArray[i-1]) {
				continue;
			}else {
				answer++;
			}
		}
		System.out.println(answer);
	}
}