import java.util.*;
import java.io.*;
import java.nio.charset.StandardCharsets;

public class Main {
	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		int N = Integer.parseInt(in.readLine());
		Set<Integer> set = new HashSet<>();
		for(int i = 0; i < N; ++i) {
			set.add(Integer.parseInt(in.readLine()));
		}
		System.out.println(set.size());
		
	}
} import java.util.*; util.* java import java.io.*; io.* java import java.nio.charset.StandardCharsets; StandardCharsets java.nio.charset public class Main {
	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		int N = Integer.parseInt(in.readLine());
		Set<Integer> set = new HashSet<>();
		for(int i = 0; i < N; ++i) {
			set.add(Integer.parseInt(in.readLine()));
		}
		System.out.println(set.size());
		
	}
} Main public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		int N = Integer.parseInt(in.readLine());
		Set<Integer> set = new HashSet<>();
		for(int i = 0; i < N; ++i) {
			set.add(Integer.parseInt(in.readLine()));
		}
		System.out.println(set.size());
		
	} main {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		int N = Integer.parseInt(in.readLine());
		Set<Integer> set = new HashSet<>();
		for(int i = 0; i < N; ++i) {
			set.add(Integer.parseInt(in.readLine()));
		}
		System.out.println(set.size());
		
	} InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8); reader new InputStreamReader(System.in, StandardCharsets.UTF_8) BufferedReader in = new BufferedReader(reader); in new BufferedReader(reader) int N = Integer.parseInt(in.readLine()); N Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in Set<Integer> set = new HashSet<>(); set new HashSet<>() for(int i = 0; i < N; ++i) {
			set.add(Integer.parseInt(in.readLine()));
		} int i = 0; int i = 0; i 0 i < N i N ++i ++i i {
			set.add(Integer.parseInt(in.readLine()));
		} {
			set.add(Integer.parseInt(in.readLine()));
		} set.add(Integer.parseInt(in.readLine())) set.add set Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in System.out.println(set.size()) System.out.println System.out System System.out set.size() set.size set String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		int N = Integer.parseInt(in.readLine());
		Set<Integer> set = new HashSet<>();
		for(int i = 0; i < N; ++i) {
			set.add(Integer.parseInt(in.readLine()));
		}
		System.out.println(set.size());
		
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		int N = Integer.parseInt(in.readLine());
		Set<Integer> set = new HashSet<>();
		for(int i = 0; i < N; ++i) {
			set.add(Integer.parseInt(in.readLine()));
		}
		System.out.println(set.size());
		
	}
} Main
import java.util.*;
import java.io.*;
import java.nio.charset.StandardCharsets;

public class Main {
	public static void main(String[] args) throws IOException {
		InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
		BufferedReader in = new BufferedReader(reader);
		int N = Integer.parseInt(in.readLine());
		Set<Integer> set = new HashSet<>();
		for(int i = 0; i < N; ++i) {
			set.add(Integer.parseInt(in.readLine()));
		}
		System.out.println(set.size());
		
	}
}
