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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		List<Integer> mochiList = new ArrayList<Integer>();

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

		Collections.sort(mochiList);
		List<Integer> mochiList2 = new ArrayList<Integer>(new LinkedHashSet<>(mochiList));

		System.out.print(mochiList2.size());

	}

} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.LinkedHashSet; LinkedHashSet 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);

		final int n = sc.nextInt();

		List<Integer> mochiList = new ArrayList<Integer>();

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

		Collections.sort(mochiList);
		List<Integer> mochiList2 = new ArrayList<Integer>(new LinkedHashSet<>(mochiList));

		System.out.print(mochiList2.size());

	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		List<Integer> mochiList = new ArrayList<Integer>();

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

		Collections.sort(mochiList);
		List<Integer> mochiList2 = new ArrayList<Integer>(new LinkedHashSet<>(mochiList));

		System.out.print(mochiList2.size());

	} main {
		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		List<Integer> mochiList = new ArrayList<Integer>();

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

		Collections.sort(mochiList);
		List<Integer> mochiList2 = new ArrayList<Integer>(new LinkedHashSet<>(mochiList));

		System.out.print(mochiList2.size());

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc List<Integer> mochiList = new ArrayList<Integer>(); mochiList new ArrayList<Integer>() for (int i = 0; i < n; i++) {
			mochiList.add(sc.nextInt());
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			mochiList.add(sc.nextInt());
		} {
			mochiList.add(sc.nextInt());
		} mochiList.add(sc.nextInt()) mochiList.add mochiList sc.nextInt() sc.nextInt sc Collections.sort(mochiList) Collections.sort Collections mochiList List<Integer> mochiList2 = new ArrayList<Integer>(new LinkedHashSet<>(mochiList)); mochiList2 new ArrayList<Integer>(new LinkedHashSet<>(mochiList)) System.out.print(mochiList2.size()) System.out.print System.out System System.out mochiList2.size() mochiList2.size mochiList2 String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		List<Integer> mochiList = new ArrayList<Integer>();

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

		Collections.sort(mochiList);
		List<Integer> mochiList2 = new ArrayList<Integer>(new LinkedHashSet<>(mochiList));

		System.out.print(mochiList2.size());

	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		List<Integer> mochiList = new ArrayList<Integer>();

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

		Collections.sort(mochiList);
		List<Integer> mochiList2 = new ArrayList<Integer>(new LinkedHashSet<>(mochiList));

		System.out.print(mochiList2.size());

	}

} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		final int n = sc.nextInt();

		List<Integer> mochiList = new ArrayList<Integer>();

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

		Collections.sort(mochiList);
		List<Integer> mochiList2 = new ArrayList<Integer>(new LinkedHashSet<>(mochiList));

		System.out.print(mochiList2.size());

	}

}
