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

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.nextLine();
		List<Integer> mochi = new ArrayList<Integer>();
		while (sc.hasNextLine()) {
			mochi.add(Integer.valueOf(sc.nextLine()));
		}
		Long result=mochi.stream().distinct().count();
		System.out.println(result);
	}
} import java.util.ArrayList; ArrayList 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);
		sc.nextLine();
		List<Integer> mochi = new ArrayList<Integer>();
		while (sc.hasNextLine()) {
			mochi.add(Integer.valueOf(sc.nextLine()));
		}
		Long result=mochi.stream().distinct().count();
		System.out.println(result);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.nextLine();
		List<Integer> mochi = new ArrayList<Integer>();
		while (sc.hasNextLine()) {
			mochi.add(Integer.valueOf(sc.nextLine()));
		}
		Long result=mochi.stream().distinct().count();
		System.out.println(result);
	} main {
		Scanner sc = new Scanner(System.in);
		sc.nextLine();
		List<Integer> mochi = new ArrayList<Integer>();
		while (sc.hasNextLine()) {
			mochi.add(Integer.valueOf(sc.nextLine()));
		}
		Long result=mochi.stream().distinct().count();
		System.out.println(result);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) sc.nextLine() sc.nextLine sc List<Integer> mochi = new ArrayList<Integer>(); mochi new ArrayList<Integer>() while (sc.hasNextLine()) {
			mochi.add(Integer.valueOf(sc.nextLine()));
		} sc.hasNextLine() sc.hasNextLine sc {
			mochi.add(Integer.valueOf(sc.nextLine()));
		} mochi.add(Integer.valueOf(sc.nextLine())) mochi.add mochi Integer.valueOf(sc.nextLine()) Integer.valueOf Integer sc.nextLine() sc.nextLine sc Long result=mochi.stream().distinct().count(); result mochi.stream().distinct().count() mochi.stream().distinct().count mochi.stream().distinct() mochi.stream().distinct mochi.stream() mochi.stream mochi System.out.println(result) System.out.println System.out System System.out result String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.nextLine();
		List<Integer> mochi = new ArrayList<Integer>();
		while (sc.hasNextLine()) {
			mochi.add(Integer.valueOf(sc.nextLine()));
		}
		Long result=mochi.stream().distinct().count();
		System.out.println(result);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.nextLine();
		List<Integer> mochi = new ArrayList<Integer>();
		while (sc.hasNextLine()) {
			mochi.add(Integer.valueOf(sc.nextLine()));
		}
		Long result=mochi.stream().distinct().count();
		System.out.println(result);
	}
} Main
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		sc.nextLine();
		List<Integer> mochi = new ArrayList<Integer>();
		while (sc.hasNextLine()) {
			mochi.add(Integer.valueOf(sc.nextLine()));
		}
		Long result=mochi.stream().distinct().count();
		System.out.println(result);
	}
}