import java.io.*;
import java.lang.*;
import java.util.*;
public class Main{  
    public static void main(String[] args) throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        HashSet<String> hs=new HashSet<String>();
        int N=Integer.parseInt(br.readLine());
        int count=0;
        for(int i=0;i<N;i++){
            String str=br.readLine();
            boolean added=hs.add(str);
            if(added) count++;
        }
        System.out.println(count);
    }
} import java.io.*; io.* java import java.lang.*; lang.* 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));
        HashSet<String> hs=new HashSet<String>();
        int N=Integer.parseInt(br.readLine());
        int count=0;
        for(int i=0;i<N;i++){
            String str=br.readLine();
            boolean added=hs.add(str);
            if(added) count++;
        }
        System.out.println(count);
    }
} Main public static void main(String[] args) throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        HashSet<String> hs=new HashSet<String>();
        int N=Integer.parseInt(br.readLine());
        int count=0;
        for(int i=0;i<N;i++){
            String str=br.readLine();
            boolean added=hs.add(str);
            if(added) count++;
        }
        System.out.println(count);
    } main {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        HashSet<String> hs=new HashSet<String>();
        int N=Integer.parseInt(br.readLine());
        int count=0;
        for(int i=0;i<N;i++){
            String str=br.readLine();
            boolean added=hs.add(str);
            if(added) count++;
        }
        System.out.println(count);
    } BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) HashSet<String> hs=new HashSet<String>(); hs new HashSet<String>() int N=Integer.parseInt(br.readLine()); N Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br int count=0; count 0 for(int i=0;i<N;i++){
            String str=br.readLine();
            boolean added=hs.add(str);
            if(added) count++;
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            String str=br.readLine();
            boolean added=hs.add(str);
            if(added) count++;
        } {
            String str=br.readLine();
            boolean added=hs.add(str);
            if(added) count++;
        } String str=br.readLine(); str br.readLine() br.readLine br boolean added=hs.add(str); added hs.add(str) hs.add hs str if(added) count++; added count++ count System.out.println(count) System.out.println System.out System System.out count String[] args args public class Main{  
    public static void main(String[] args) throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        HashSet<String> hs=new HashSet<String>();
        int N=Integer.parseInt(br.readLine());
        int count=0;
        for(int i=0;i<N;i++){
            String str=br.readLine();
            boolean added=hs.add(str);
            if(added) count++;
        }
        System.out.println(count);
    }
} public class Main{  
    public static void main(String[] args) throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        HashSet<String> hs=new HashSet<String>();
        int N=Integer.parseInt(br.readLine());
        int count=0;
        for(int i=0;i<N;i++){
            String str=br.readLine();
            boolean added=hs.add(str);
            if(added) count++;
        }
        System.out.println(count);
    }
} Main
import java.io.*;
import java.lang.*;
import java.util.*;
public class Main{  
    public static void main(String[] args) throws IOException{
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        HashSet<String> hs=new HashSet<String>();
        int N=Integer.parseInt(br.readLine());
        int count=0;
        for(int i=0;i<N;i++){
            String str=br.readLine();
            boolean added=hs.add(str);
            if(added) count++;
        }
        System.out.println(count);
    }
}
