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

// https://atcoder.jp/contests/abc085/tasks/abc085_b
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();

		int[] numbers = new int[n];
		for(int i=0;i<n;i++) {
			numbers[i] = scanner .nextInt();
		}

		scanner.close();

		Arrays.sort(numbers);

		int sum = 1;
		int number1 = numbers[0];
		for(int i=1;i<n;i++) {
			if(number1!=numbers[i]) {
				sum++;
				number1 = numbers[i];
			}
		}
		System.out.println(sum);

	}

} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();

		int[] numbers = new int[n];
		for(int i=0;i<n;i++) {
			numbers[i] = scanner .nextInt();
		}

		scanner.close();

		Arrays.sort(numbers);

		int sum = 1;
		int number1 = numbers[0];
		for(int i=1;i<n;i++) {
			if(number1!=numbers[i]) {
				sum++;
				number1 = numbers[i];
			}
		}
		System.out.println(sum);

	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();

		int[] numbers = new int[n];
		for(int i=0;i<n;i++) {
			numbers[i] = scanner .nextInt();
		}

		scanner.close();

		Arrays.sort(numbers);

		int sum = 1;
		int number1 = numbers[0];
		for(int i=1;i<n;i++) {
			if(number1!=numbers[i]) {
				sum++;
				number1 = numbers[i];
			}
		}
		System.out.println(sum);

	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();

		int[] numbers = new int[n];
		for(int i=0;i<n;i++) {
			numbers[i] = scanner .nextInt();
		}

		scanner.close();

		Arrays.sort(numbers);

		int sum = 1;
		int number1 = numbers[0];
		for(int i=1;i<n;i++) {
			if(number1!=numbers[i]) {
				sum++;
				number1 = numbers[i];
			}
		}
		System.out.println(sum);

	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int n = scanner.nextInt(); n scanner.nextInt() scanner.nextInt scanner int[] numbers = new int[n]; numbers new int[n] n for(int i=0;i<n;i++) {
			numbers[i] = scanner .nextInt();
		} int i=0; int i=0; i 0 i<n i n i++ i++ i {
			numbers[i] = scanner .nextInt();
		} {
			numbers[i] = scanner .nextInt();
		} numbers[i] = scanner .nextInt() numbers[i] numbers i scanner .nextInt() scanner .nextInt scanner scanner.close() scanner.close scanner Arrays.sort(numbers) Arrays.sort Arrays numbers int sum = 1; sum 1 int number1 = numbers[0]; number1 numbers[0] numbers 0 for(int i=1;i<n;i++) {
			if(number1!=numbers[i]) {
				sum++;
				number1 = numbers[i];
			}
		} int i=1; int i=1; i 1 i<n i n i++ i++ i {
			if(number1!=numbers[i]) {
				sum++;
				number1 = numbers[i];
			}
		} {
			if(number1!=numbers[i]) {
				sum++;
				number1 = numbers[i];
			}
		} if(number1!=numbers[i]) {
				sum++;
				number1 = numbers[i];
			} number1!=numbers[i] number1 numbers[i] numbers i {
				sum++;
				number1 = numbers[i];
			} sum++ sum number1 = numbers[i] number1 numbers[i] numbers i System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();

		int[] numbers = new int[n];
		for(int i=0;i<n;i++) {
			numbers[i] = scanner .nextInt();
		}

		scanner.close();

		Arrays.sort(numbers);

		int sum = 1;
		int number1 = numbers[0];
		for(int i=1;i<n;i++) {
			if(number1!=numbers[i]) {
				sum++;
				number1 = numbers[i];
			}
		}
		System.out.println(sum);

	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();

		int[] numbers = new int[n];
		for(int i=0;i<n;i++) {
			numbers[i] = scanner .nextInt();
		}

		scanner.close();

		Arrays.sort(numbers);

		int sum = 1;
		int number1 = numbers[0];
		for(int i=1;i<n;i++) {
			if(number1!=numbers[i]) {
				sum++;
				number1 = numbers[i];
			}
		}
		System.out.println(sum);

	}

} Main
import java.util.Arrays;
import java.util.Scanner;

// https://atcoder.jp/contests/abc085/tasks/abc085_b
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();

		int[] numbers = new int[n];
		for(int i=0;i<n;i++) {
			numbers[i] = scanner .nextInt();
		}

		scanner.close();

		Arrays.sort(numbers);

		int sum = 1;
		int number1 = numbers[0];
		for(int i=1;i<n;i++) {
			if(number1!=numbers[i]) {
				sum++;
				number1 = numbers[i];
			}
		}
		System.out.println(sum);

	}

}
