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

public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		Integer N = sc.nextInt();
		Integer[] diameter = new Integer[N];
		for (int i = 0; i < diameter.length; i++) {
			diameter[i] = sc.nextInt();
		}
		Arrays.sort(diameter, Comparator.reverseOrder());
		int ans = 0;
		for (int i = 0; i < diameter.length; i++) {
			if (i != 0 && diameter[i - 1] == diameter[i])
				continue;
			ans++;
		}
		System.out.println(ans);
		sc.close();
	}
} import java.util.Arrays; Arrays java.util import java.util.Comparator; Comparator java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		Integer N = sc.nextInt();
		Integer[] diameter = new Integer[N];
		for (int i = 0; i < diameter.length; i++) {
			diameter[i] = sc.nextInt();
		}
		Arrays.sort(diameter, Comparator.reverseOrder());
		int ans = 0;
		for (int i = 0; i < diameter.length; i++) {
			if (i != 0 && diameter[i - 1] == diameter[i])
				continue;
			ans++;
		}
		System.out.println(ans);
		sc.close();
	}
} Main public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		Integer N = sc.nextInt();
		Integer[] diameter = new Integer[N];
		for (int i = 0; i < diameter.length; i++) {
			diameter[i] = sc.nextInt();
		}
		Arrays.sort(diameter, Comparator.reverseOrder());
		int ans = 0;
		for (int i = 0; i < diameter.length; i++) {
			if (i != 0 && diameter[i - 1] == diameter[i])
				continue;
			ans++;
		}
		System.out.println(ans);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		Integer N = sc.nextInt();
		Integer[] diameter = new Integer[N];
		for (int i = 0; i < diameter.length; i++) {
			diameter[i] = sc.nextInt();
		}
		Arrays.sort(diameter, Comparator.reverseOrder());
		int ans = 0;
		for (int i = 0; i < diameter.length; i++) {
			if (i != 0 && diameter[i - 1] == diameter[i])
				continue;
			ans++;
		}
		System.out.println(ans);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Integer N = sc.nextInt(); N sc.nextInt() sc.nextInt sc Integer[] diameter = new Integer[N]; diameter new Integer[N] N for (int i = 0; i < diameter.length; i++) {
			diameter[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < diameter.length i diameter.length diameter diameter.length i++ i++ i {
			diameter[i] = sc.nextInt();
		} {
			diameter[i] = sc.nextInt();
		} diameter[i] = sc.nextInt() diameter[i] diameter i sc.nextInt() sc.nextInt sc Arrays.sort(diameter, Comparator.reverseOrder()) Arrays.sort Arrays diameter Comparator.reverseOrder() Comparator.reverseOrder Comparator int ans = 0; ans 0 for (int i = 0; i < diameter.length; i++) {
			if (i != 0 && diameter[i - 1] == diameter[i])
				continue;
			ans++;
		} int i = 0; int i = 0; i 0 i < diameter.length i diameter.length diameter diameter.length i++ i++ i {
			if (i != 0 && diameter[i - 1] == diameter[i])
				continue;
			ans++;
		} {
			if (i != 0 && diameter[i - 1] == diameter[i])
				continue;
			ans++;
		} if (i != 0 && diameter[i - 1] == diameter[i])
				continue; i != 0 && diameter[i - 1] == diameter[i] i != 0 i 0 diameter[i - 1] == diameter[i] diameter[i - 1] diameter i - 1 i 1 diameter[i] diameter i continue; ans++ ans System.out.println(ans) System.out.println System.out System System.out ans sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		Integer N = sc.nextInt();
		Integer[] diameter = new Integer[N];
		for (int i = 0; i < diameter.length; i++) {
			diameter[i] = sc.nextInt();
		}
		Arrays.sort(diameter, Comparator.reverseOrder());
		int ans = 0;
		for (int i = 0; i < diameter.length; i++) {
			if (i != 0 && diameter[i - 1] == diameter[i])
				continue;
			ans++;
		}
		System.out.println(ans);
		sc.close();
	}
} public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		Integer N = sc.nextInt();
		Integer[] diameter = new Integer[N];
		for (int i = 0; i < diameter.length; i++) {
			diameter[i] = sc.nextInt();
		}
		Arrays.sort(diameter, Comparator.reverseOrder());
		int ans = 0;
		for (int i = 0; i < diameter.length; i++) {
			if (i != 0 && diameter[i - 1] == diameter[i])
				continue;
			ans++;
		}
		System.out.println(ans);
		sc.close();
	}
} Main
import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		Integer N = sc.nextInt();
		Integer[] diameter = new Integer[N];
		for (int i = 0; i < diameter.length; i++) {
			diameter[i] = sc.nextInt();
		}
		Arrays.sort(diameter, Comparator.reverseOrder());
		int ans = 0;
		for (int i = 0; i < diameter.length; i++) {
			if (i != 0 && diameter[i - 1] == diameter[i])
				continue;
			ans++;
		}
		System.out.println(ans);
		sc.close();
	}
}