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

public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int mochis = Integer.parseInt(br.readLine());
        Set<Integer> mochi = new HashSet<Integer>();

        for(int i = 0; i<mochis; i++){
            mochi.add(Integer.parseInt(br.readLine()));
        }
        System.out.println(mochi.size());
    }    
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int mochis = Integer.parseInt(br.readLine());
        Set<Integer> mochi = new HashSet<Integer>();

        for(int i = 0; i<mochis; i++){
            mochi.add(Integer.parseInt(br.readLine()));
        }
        System.out.println(mochi.size());
    }    
} Main public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int mochis = Integer.parseInt(br.readLine());
        Set<Integer> mochi = new HashSet<Integer>();

        for(int i = 0; i<mochis; i++){
            mochi.add(Integer.parseInt(br.readLine()));
        }
        System.out.println(mochi.size());
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int mochis = Integer.parseInt(br.readLine());
        Set<Integer> mochi = new HashSet<Integer>();

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

        int mochis = Integer.parseInt(br.readLine());
        Set<Integer> mochi = new HashSet<Integer>();

        for(int i = 0; i<mochis; i++){
            mochi.add(Integer.parseInt(br.readLine()));
        }
        System.out.println(mochi.size());
    }    
} public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int mochis = Integer.parseInt(br.readLine());
        Set<Integer> mochi = new HashSet<Integer>();

        for(int i = 0; i<mochis; i++){
            mochi.add(Integer.parseInt(br.readLine()));
        }
        System.out.println(mochi.size());
    }    
} Main
import java.io.*;
import java.util.*;

public class Main{
    public static void main(String[]args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int mochis = Integer.parseInt(br.readLine());
        Set<Integer> mochi = new HashSet<Integer>();

        for(int i = 0; i<mochis; i++){
            mochi.add(Integer.parseInt(br.readLine()));
        }
        System.out.println(mochi.size());
    }    
}