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[] mochi = new int[N];
		for (int i = 0; i < N ; i++) {
			mochi[i] = sc.nextInt();
		}
		Arrays.sort(mochi);

		int total = 1;
		for (int i = 0 ; i < N-1 ; i++) {
			if (mochi[i] < mochi[i+1]) {
				total += 1;
			}
			if (i+1 == N-1) {
				break;
			}
		}
		System.out.println(total);

	}
} 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[] mochi = new int[N];
		for (int i = 0; i < N ; i++) {
			mochi[i] = sc.nextInt();
		}
		Arrays.sort(mochi);

		int total = 1;
		for (int i = 0 ; i < N-1 ; i++) {
			if (mochi[i] < mochi[i+1]) {
				total += 1;
			}
			if (i+1 == N-1) {
				break;
			}
		}
		System.out.println(total);

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] mochi = new int[N];
		for (int i = 0; i < N ; i++) {
			mochi[i] = sc.nextInt();
		}
		Arrays.sort(mochi);

		int total = 1;
		for (int i = 0 ; i < N-1 ; i++) {
			if (mochi[i] < mochi[i+1]) {
				total += 1;
			}
			if (i+1 == N-1) {
				break;
			}
		}
		System.out.println(total);

	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] mochi = new int[N];
		for (int i = 0; i < N ; i++) {
			mochi[i] = sc.nextInt();
		}
		Arrays.sort(mochi);

		int total = 1;
		for (int i = 0 ; i < N-1 ; i++) {
			if (mochi[i] < mochi[i+1]) {
				total += 1;
			}
			if (i+1 == N-1) {
				break;
			}
		}
		System.out.println(total);

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

		int total = 1;
		for (int i = 0 ; i < N-1 ; i++) {
			if (mochi[i] < mochi[i+1]) {
				total += 1;
			}
			if (i+1 == N-1) {
				break;
			}
		}
		System.out.println(total);

	}
} public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int[] mochi = new int[N];
		for (int i = 0; i < N ; i++) {
			mochi[i] = sc.nextInt();
		}
		Arrays.sort(mochi);

		int total = 1;
		for (int i = 0 ; i < N-1 ; i++) {
			if (mochi[i] < mochi[i+1]) {
				total += 1;
			}
			if (i+1 == N-1) {
				break;
			}
		}
		System.out.println(total);

	}
} 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[] mochi = new int[N];
		for (int i = 0; i < N ; i++) {
			mochi[i] = sc.nextInt();
		}
		Arrays.sort(mochi);

		int total = 1;
		for (int i = 0 ; i < N-1 ; i++) {
			if (mochi[i] < mochi[i+1]) {
				total += 1;
			}
			if (i+1 == N-1) {
				break;
			}
		}
		System.out.println(total);

	}
}
