import java.util.*;

public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        int N = 0;
        N = sc.nextInt();
        Set<String> tempSet = new HashSet<String>();
        
        for(int i=0;i<N;i++){
            tempSet.add(sc.next());
        }
    System.out.println(tempSet.size()); 
}
} import java.util.*; util.* java public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        int N = 0;
        N = sc.nextInt();
        Set<String> tempSet = new HashSet<String>();
        
        for(int i=0;i<N;i++){
            tempSet.add(sc.next());
        }
    System.out.println(tempSet.size()); 
}
} Main public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        int N = 0;
        N = sc.nextInt();
        Set<String> tempSet = new HashSet<String>();
        
        for(int i=0;i<N;i++){
            tempSet.add(sc.next());
        }
    System.out.println(tempSet.size()); 
} main {
        final Scanner sc = new Scanner(System.in);
        int N = 0;
        N = sc.nextInt();
        Set<String> tempSet = new HashSet<String>();
        
        for(int i=0;i<N;i++){
            tempSet.add(sc.next());
        }
    System.out.println(tempSet.size()); 
} final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = 0; N 0 N = sc.nextInt() N sc.nextInt() sc.nextInt sc Set<String> tempSet = new HashSet<String>(); tempSet new HashSet<String>() for(int i=0;i<N;i++){
            tempSet.add(sc.next());
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            tempSet.add(sc.next());
        } {
            tempSet.add(sc.next());
        } tempSet.add(sc.next()) tempSet.add tempSet sc.next() sc.next sc System.out.println(tempSet.size()) System.out.println System.out System System.out tempSet.size() tempSet.size tempSet final String[] args args public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        int N = 0;
        N = sc.nextInt();
        Set<String> tempSet = new HashSet<String>();
        
        for(int i=0;i<N;i++){
            tempSet.add(sc.next());
        }
    System.out.println(tempSet.size()); 
}
} public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        int N = 0;
        N = sc.nextInt();
        Set<String> tempSet = new HashSet<String>();
        
        for(int i=0;i<N;i++){
            tempSet.add(sc.next());
        }
    System.out.println(tempSet.size()); 
}
} Main
import java.util.*;

public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        int N = 0;
        N = sc.nextInt();
        Set<String> tempSet = new HashSet<String>();
        
        for(int i=0;i<N;i++){
            tempSet.add(sc.next());
        }
    System.out.println(tempSet.size()); 
}
}