import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc=new Scanner(System.in);
        int N=sc.nextInt();
        String[] S=new String[N];
        
        for(int i=0;i<N;i++){
            S[i]=sc.next();
        }
        
        Arrays.sort(S);
        int ans=1;
        
        for(int i=1;i<N;i++){
            if(S[i].equals(S[i-1])){
                
            }else{
                ans++;
            }
        }
        
        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc=new Scanner(System.in);
        int N=sc.nextInt();
        String[] S=new String[N];
        
        for(int i=0;i<N;i++){
            S[i]=sc.next();
        }
        
        Arrays.sort(S);
        int ans=1;
        
        for(int i=1;i<N;i++){
            if(S[i].equals(S[i-1])){
                
            }else{
                ans++;
            }
        }
        
        System.out.println(ans);
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc=new Scanner(System.in);
        int N=sc.nextInt();
        String[] S=new String[N];
        
        for(int i=0;i<N;i++){
            S[i]=sc.next();
        }
        
        Arrays.sort(S);
        int ans=1;
        
        for(int i=1;i<N;i++){
            if(S[i].equals(S[i-1])){
                
            }else{
                ans++;
            }
        }
        
        System.out.println(ans);
    } main {
        Scanner sc=new Scanner(System.in);
        int N=sc.nextInt();
        String[] S=new String[N];
        
        for(int i=0;i<N;i++){
            S[i]=sc.next();
        }
        
        Arrays.sort(S);
        int ans=1;
        
        for(int i=1;i<N;i++){
            if(S[i].equals(S[i-1])){
                
            }else{
                ans++;
            }
        }
        
        System.out.println(ans);
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int N=sc.nextInt(); N sc.nextInt() sc.nextInt sc String[] S=new String[N]; S new String[N] N for(int i=0;i<N;i++){
            S[i]=sc.next();
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            S[i]=sc.next();
        } {
            S[i]=sc.next();
        } S[i]=sc.next() S[i] S i sc.next() sc.next sc Arrays.sort(S) Arrays.sort Arrays S int ans=1; ans 1 for(int i=1;i<N;i++){
            if(S[i].equals(S[i-1])){
                
            }else{
                ans++;
            }
        } int i=1; int i=1; i 1 i<N i N i++ i++ i {
            if(S[i].equals(S[i-1])){
                
            }else{
                ans++;
            }
        } {
            if(S[i].equals(S[i-1])){
                
            }else{
                ans++;
            }
        } if(S[i].equals(S[i-1])){
                
            }else{
                ans++;
            } S[i].equals(S[i-1]) S[i].equals S[i] S i S[i-1] S i-1 i 1 {
                
            } {
                ans++;
            } ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc=new Scanner(System.in);
        int N=sc.nextInt();
        String[] S=new String[N];
        
        for(int i=0;i<N;i++){
            S[i]=sc.next();
        }
        
        Arrays.sort(S);
        int ans=1;
        
        for(int i=1;i<N;i++){
            if(S[i].equals(S[i-1])){
                
            }else{
                ans++;
            }
        }
        
        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc=new Scanner(System.in);
        int N=sc.nextInt();
        String[] S=new String[N];
        
        for(int i=0;i<N;i++){
            S[i]=sc.next();
        }
        
        Arrays.sort(S);
        int ans=1;
        
        for(int i=1;i<N;i++){
            if(S[i].equals(S[i-1])){
                
            }else{
                ans++;
            }
        }
        
        System.out.println(ans);
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc=new Scanner(System.in);
        int N=sc.nextInt();
        String[] S=new String[N];
        
        for(int i=0;i<N;i++){
            S[i]=sc.next();
        }
        
        Arrays.sort(S);
        int ans=1;
        
        for(int i=1;i<N;i++){
            if(S[i].equals(S[i-1])){
                
            }else{
                ans++;
            }
        }
        
        System.out.println(ans);
    }
}
