import java.util.Collections;
import java.util.Scanner;
import java.util.TreeSet;

public class Main {
	public static void main(String[] args) {
		int N;
		TreeSet<Integer> mochi = new TreeSet<Integer>(Collections.reverseOrder());
		Scanner scan = new Scanner(System.in);
		N = scan.nextInt();

		for(int i = 0; i < N; i++) {
			mochi.add(scan.nextInt());
		}
		System.out.println(mochi.size());
		scan.close();
	}
} import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util import java.util.TreeSet; TreeSet java.util public class Main {
	public static void main(String[] args) {
		int N;
		TreeSet<Integer> mochi = new TreeSet<Integer>(Collections.reverseOrder());
		Scanner scan = new Scanner(System.in);
		N = scan.nextInt();

		for(int i = 0; i < N; i++) {
			mochi.add(scan.nextInt());
		}
		System.out.println(mochi.size());
		scan.close();
	}
} Main public static void main(String[] args) {
		int N;
		TreeSet<Integer> mochi = new TreeSet<Integer>(Collections.reverseOrder());
		Scanner scan = new Scanner(System.in);
		N = scan.nextInt();

		for(int i = 0; i < N; i++) {
			mochi.add(scan.nextInt());
		}
		System.out.println(mochi.size());
		scan.close();
	} main {
		int N;
		TreeSet<Integer> mochi = new TreeSet<Integer>(Collections.reverseOrder());
		Scanner scan = new Scanner(System.in);
		N = scan.nextInt();

		for(int i = 0; i < N; i++) {
			mochi.add(scan.nextInt());
		}
		System.out.println(mochi.size());
		scan.close();
	} int N; N TreeSet<Integer> mochi = new TreeSet<Integer>(Collections.reverseOrder()); mochi new TreeSet<Integer>(Collections.reverseOrder()) Scanner scan = new Scanner(System.in); scan new Scanner(System.in) N = scan.nextInt() N scan.nextInt() scan.nextInt scan for(int i = 0; i < N; i++) {
			mochi.add(scan.nextInt());
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			mochi.add(scan.nextInt());
		} {
			mochi.add(scan.nextInt());
		} mochi.add(scan.nextInt()) mochi.add mochi scan.nextInt() scan.nextInt scan System.out.println(mochi.size()) System.out.println System.out System System.out mochi.size() mochi.size mochi scan.close() scan.close scan String[] args args public class Main {
	public static void main(String[] args) {
		int N;
		TreeSet<Integer> mochi = new TreeSet<Integer>(Collections.reverseOrder());
		Scanner scan = new Scanner(System.in);
		N = scan.nextInt();

		for(int i = 0; i < N; i++) {
			mochi.add(scan.nextInt());
		}
		System.out.println(mochi.size());
		scan.close();
	}
} public class Main {
	public static void main(String[] args) {
		int N;
		TreeSet<Integer> mochi = new TreeSet<Integer>(Collections.reverseOrder());
		Scanner scan = new Scanner(System.in);
		N = scan.nextInt();

		for(int i = 0; i < N; i++) {
			mochi.add(scan.nextInt());
		}
		System.out.println(mochi.size());
		scan.close();
	}
} Main
import java.util.Collections;
import java.util.Scanner;
import java.util.TreeSet;

public class Main {
	public static void main(String[] args) {
		int N;
		TreeSet<Integer> mochi = new TreeSet<Integer>(Collections.reverseOrder());
		Scanner scan = new Scanner(System.in);
		N = scan.nextInt();

		for(int i = 0; i < N; i++) {
			mochi.add(scan.nextInt());
		}
		System.out.println(mochi.size());
		scan.close();
	}
}
