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

public class Main{
    public static void main(String[] args)throws Exception{
        Scanner sc = new Scanner(System.in);
        Map<String,Boolean> map = new HashMap<>();
        int n=sc.nextInt();
        int count=0;
        for(int i=0;i<n;i++){
            String s=sc.next();
            if(!map.containsKey(s)){
                count++;
                map.put(s,true);
            }
        }
        System.out.println(count);
    }
} import java.io.*; io.* java import java.util.*; util.* java public class Main{
    public static void main(String[] args)throws Exception{
        Scanner sc = new Scanner(System.in);
        Map<String,Boolean> map = new HashMap<>();
        int n=sc.nextInt();
        int count=0;
        for(int i=0;i<n;i++){
            String s=sc.next();
            if(!map.containsKey(s)){
                count++;
                map.put(s,true);
            }
        }
        System.out.println(count);
    }
} Main public static void main(String[] args)throws Exception{
        Scanner sc = new Scanner(System.in);
        Map<String,Boolean> map = new HashMap<>();
        int n=sc.nextInt();
        int count=0;
        for(int i=0;i<n;i++){
            String s=sc.next();
            if(!map.containsKey(s)){
                count++;
                map.put(s,true);
            }
        }
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        Map<String,Boolean> map = new HashMap<>();
        int n=sc.nextInt();
        int count=0;
        for(int i=0;i<n;i++){
            String s=sc.next();
            if(!map.containsKey(s)){
                count++;
                map.put(s,true);
            }
        }
        System.out.println(count);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Map<String,Boolean> map = new HashMap<>(); map new HashMap<>() int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int count=0; count 0 for(int i=0;i<n;i++){
            String s=sc.next();
            if(!map.containsKey(s)){
                count++;
                map.put(s,true);
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            String s=sc.next();
            if(!map.containsKey(s)){
                count++;
                map.put(s,true);
            }
        } {
            String s=sc.next();
            if(!map.containsKey(s)){
                count++;
                map.put(s,true);
            }
        } String s=sc.next(); s sc.next() sc.next sc if(!map.containsKey(s)){
                count++;
                map.put(s,true);
            } !map.containsKey(s) map.containsKey(s) map.containsKey map s {
                count++;
                map.put(s,true);
            } count++ count map.put(s,true) map.put map s true 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 Exception{
        Scanner sc = new Scanner(System.in);
        Map<String,Boolean> map = new HashMap<>();
        int n=sc.nextInt();
        int count=0;
        for(int i=0;i<n;i++){
            String s=sc.next();
            if(!map.containsKey(s)){
                count++;
                map.put(s,true);
            }
        }
        System.out.println(count);
    }
} public class Main{
    public static void main(String[] args)throws Exception{
        Scanner sc = new Scanner(System.in);
        Map<String,Boolean> map = new HashMap<>();
        int n=sc.nextInt();
        int count=0;
        for(int i=0;i<n;i++){
            String s=sc.next();
            if(!map.containsKey(s)){
                count++;
                map.put(s,true);
            }
        }
        System.out.println(count);
    }
} Main
import java.io.*;
import java.util.*;

public class Main{
    public static void main(String[] args)throws Exception{
        Scanner sc = new Scanner(System.in);
        Map<String,Boolean> map = new HashMap<>();
        int n=sc.nextInt();
        int count=0;
        for(int i=0;i<n;i++){
            String s=sc.next();
            if(!map.containsKey(s)){
                count++;
                map.put(s,true);
            }
        }
        System.out.println(count);
    }
}