import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		List<Integer> d = new ArrayList<>();
		int answer = 1;

		for (int i = 0; i < N; i++) {
			d.add(sc.nextInt());
		}

		Collections.sort(d);

		for (int i = 0; i < N - 1; i++) {
			if (d.get(i) < d.get(i + 1)) answer++;
		}

		System.out.println(answer);
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List 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();
		List<Integer> d = new ArrayList<>();
		int answer = 1;

		for (int i = 0; i < N; i++) {
			d.add(sc.nextInt());
		}

		Collections.sort(d);

		for (int i = 0; i < N - 1; i++) {
			if (d.get(i) < d.get(i + 1)) answer++;
		}

		System.out.println(answer);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		List<Integer> d = new ArrayList<>();
		int answer = 1;

		for (int i = 0; i < N; i++) {
			d.add(sc.nextInt());
		}

		Collections.sort(d);

		for (int i = 0; i < N - 1; i++) {
			if (d.get(i) < d.get(i + 1)) answer++;
		}

		System.out.println(answer);
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		List<Integer> d = new ArrayList<>();
		int answer = 1;

		for (int i = 0; i < N; i++) {
			d.add(sc.nextInt());
		}

		Collections.sort(d);

		for (int i = 0; i < N - 1; i++) {
			if (d.get(i) < d.get(i + 1)) 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 List<Integer> d = new ArrayList<>(); d new ArrayList<>() int answer = 1; answer 1 for (int i = 0; i < N; i++) {
			d.add(sc.nextInt());
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			d.add(sc.nextInt());
		} {
			d.add(sc.nextInt());
		} d.add(sc.nextInt()) d.add d sc.nextInt() sc.nextInt sc Collections.sort(d) Collections.sort Collections d for (int i = 0; i < N - 1; i++) {
			if (d.get(i) < d.get(i + 1)) answer++;
		} int i = 0; int i = 0; i 0 i < N - 1 i N - 1 N 1 i++ i++ i {
			if (d.get(i) < d.get(i + 1)) answer++;
		} {
			if (d.get(i) < d.get(i + 1)) answer++;
		} if (d.get(i) < d.get(i + 1)) answer++; d.get(i) < d.get(i + 1) d.get(i) d.get d i d.get(i + 1) d.get d i + 1 i 1 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();
		List<Integer> d = new ArrayList<>();
		int answer = 1;

		for (int i = 0; i < N; i++) {
			d.add(sc.nextInt());
		}

		Collections.sort(d);

		for (int i = 0; i < N - 1; i++) {
			if (d.get(i) < d.get(i + 1)) answer++;
		}

		System.out.println(answer);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		List<Integer> d = new ArrayList<>();
		int answer = 1;

		for (int i = 0; i < N; i++) {
			d.add(sc.nextInt());
		}

		Collections.sort(d);

		for (int i = 0; i < N - 1; i++) {
			if (d.get(i) < d.get(i + 1)) answer++;
		}

		System.out.println(answer);
	}
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		List<Integer> d = new ArrayList<>();
		int answer = 1;

		for (int i = 0; i < N; i++) {
			d.add(sc.nextInt());
		}

		Collections.sort(d);

		for (int i = 0; i < N - 1; i++) {
			if (d.get(i) < d.get(i + 1)) answer++;
		}

		System.out.println(answer);
	}
}
