import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int n = Integer.parseInt(br.readLine());
        Integer[] numbers = new Integer[n];
        Set<Integer> d = new HashSet<>();
        
        for(int i = 0; i < n; i++){
            d.add(Integer.valueOf(br.readLine()));
        }
        
        out.println(d.size());
        out.close();
        
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int n = Integer.parseInt(br.readLine());
        Integer[] numbers = new Integer[n];
        Set<Integer> d = new HashSet<>();
        
        for(int i = 0; i < n; i++){
            d.add(Integer.valueOf(br.readLine()));
        }
        
        out.println(d.size());
        out.close();
        
    }
} Main public static void main(String[] args) throws Exception {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int n = Integer.parseInt(br.readLine());
        Integer[] numbers = new Integer[n];
        Set<Integer> d = new HashSet<>();
        
        for(int i = 0; i < n; i++){
            d.add(Integer.valueOf(br.readLine()));
        }
        
        out.println(d.size());
        out.close();
        
    } main {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int n = Integer.parseInt(br.readLine());
        Integer[] numbers = new Integer[n];
        Set<Integer> d = new HashSet<>();
        
        for(int i = 0; i < n; i++){
            d.add(Integer.valueOf(br.readLine()));
        }
        
        out.println(d.size());
        out.close();
        
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out)); out new PrintWriter(new OutputStreamWriter(System.out)) int n = Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br Integer[] numbers = new Integer[n]; numbers new Integer[n] n Set<Integer> d = new HashSet<>(); d new HashSet<>() for(int i = 0; i < n; i++){
            d.add(Integer.valueOf(br.readLine()));
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            d.add(Integer.valueOf(br.readLine()));
        } {
            d.add(Integer.valueOf(br.readLine()));
        } d.add(Integer.valueOf(br.readLine())) d.add d Integer.valueOf(br.readLine()) Integer.valueOf Integer br.readLine() br.readLine br out.println(d.size()) out.println out d.size() d.size d out.close() out.close out String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int n = Integer.parseInt(br.readLine());
        Integer[] numbers = new Integer[n];
        Set<Integer> d = new HashSet<>();
        
        for(int i = 0; i < n; i++){
            d.add(Integer.valueOf(br.readLine()));
        }
        
        out.println(d.size());
        out.close();
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int n = Integer.parseInt(br.readLine());
        Integer[] numbers = new Integer[n];
        Set<Integer> d = new HashSet<>();
        
        for(int i = 0; i < n; i++){
            d.add(Integer.valueOf(br.readLine()));
        }
        
        out.println(d.size());
        out.close();
        
    }
} Main
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        int n = Integer.parseInt(br.readLine());
        Integer[] numbers = new Integer[n];
        Set<Integer> d = new HashSet<>();
        
        for(int i = 0; i < n; i++){
            d.add(Integer.valueOf(br.readLine()));
        }
        
        out.println(d.size());
        out.close();
        
    }
}