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

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

        //ArrayList myList = new ArrayList<>();

        int N = nextInt();

        // for(int i = 1; i<=N; i++){
        //     String S = next();
        //     if(!myList.contains(S)){
        //         myList.add(S);
        //     }
        // }
        
        String[] myList = new String[N];

        
        for(int i = 0; i<N; i++){
            String S = next();
            myList[i] = S;
        }

        Arrays.sort(myList);

        int count= 1;
        String Temp = myList[0];
        for(int i = 1; i<N; i++){
            if(!Temp.equals( myList[i])){
                count++;
                Temp = myList[i];
            }
        }

        System.out.println(count);
    }
    
      
    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }
    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }

    static String next() throws IOException {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    static StringTokenizer st;
    static BufferedReader br;  
    static PrintWriter out;
 
    public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));

        //ArrayList myList = new ArrayList<>();

        int N = nextInt();

        // for(int i = 1; i<=N; i++){
        //     String S = next();
        //     if(!myList.contains(S)){
        //         myList.add(S);
        //     }
        // }
        
        String[] myList = new String[N];

        
        for(int i = 0; i<N; i++){
            String S = next();
            myList[i] = S;
        }

        Arrays.sort(myList);

        int count= 1;
        String Temp = myList[0];
        for(int i = 1; i<N; i++){
            if(!Temp.equals( myList[i])){
                count++;
                Temp = myList[i];
            }
        }

        System.out.println(count);
    }
    
      
    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }
    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }

    static String next() throws IOException {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    }
} Main static StringTokenizer st; st static BufferedReader br; br static PrintWriter out; out public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));

        //ArrayList myList = new ArrayList<>();

        int N = nextInt();

        // for(int i = 1; i<=N; i++){
        //     String S = next();
        //     if(!myList.contains(S)){
        //         myList.add(S);
        //     }
        // }
        
        String[] myList = new String[N];

        
        for(int i = 0; i<N; i++){
            String S = next();
            myList[i] = S;
        }

        Arrays.sort(myList);

        int count= 1;
        String Temp = myList[0];
        for(int i = 1; i<N; i++){
            if(!Temp.equals( myList[i])){
                count++;
                Temp = myList[i];
            }
        }

        System.out.println(count);
    } main {
        br = new BufferedReader(new InputStreamReader(System.in));

        //ArrayList myList = new ArrayList<>();

        int N = nextInt();

        // for(int i = 1; i<=N; i++){
        //     String S = next();
        //     if(!myList.contains(S)){
        //         myList.add(S);
        //     }
        // }
        
        String[] myList = new String[N];

        
        for(int i = 0; i<N; i++){
            String S = next();
            myList[i] = S;
        }

        Arrays.sort(myList);

        int count= 1;
        String Temp = myList[0];
        for(int i = 1; i<N; i++){
            if(!Temp.equals( myList[i])){
                count++;
                Temp = myList[i];
            }
        }

        System.out.println(count);
    } br = new BufferedReader(new InputStreamReader(System.in)) br new BufferedReader(new InputStreamReader(System.in)) int N = nextInt(); N nextInt() nextInt String[] myList = new String[N]; myList new String[N] N for(int i = 0; i<N; i++){
            String S = next();
            myList[i] = S;
        } int i = 0; int i = 0; i 0 i<N i N i++ i++ i {
            String S = next();
            myList[i] = S;
        } {
            String S = next();
            myList[i] = S;
        } String S = next(); S next() next myList[i] = S myList[i] myList i S Arrays.sort(myList) Arrays.sort Arrays myList int count= 1; count 1 String Temp = myList[0]; Temp myList[0] myList 0 for(int i = 1; i<N; i++){
            if(!Temp.equals( myList[i])){
                count++;
                Temp = myList[i];
            }
        } int i = 1; int i = 1; i 1 i<N i N i++ i++ i {
            if(!Temp.equals( myList[i])){
                count++;
                Temp = myList[i];
            }
        } {
            if(!Temp.equals( myList[i])){
                count++;
                Temp = myList[i];
            }
        } if(!Temp.equals( myList[i])){
                count++;
                Temp = myList[i];
            } !Temp.equals( myList[i]) Temp.equals( myList[i]) Temp.equals Temp myList[i] myList i {
                count++;
                Temp = myList[i];
            } count++ count Temp = myList[i] Temp myList[i] myList i System.out.println(count) System.out.println System.out System System.out count String[] args args public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    } nextInt {
        return Integer.parseInt(next());
    } return Integer.parseInt(next()); Integer.parseInt(next()) Integer.parseInt Integer next() next public static long nextLong() throws IOException {
        return Long.parseLong(next());
    } nextLong {
        return Long.parseLong(next());
    } return Long.parseLong(next()); Long.parseLong(next()) Long.parseLong Long next() next public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    } nextDouble {
        return Double.parseDouble(next());
    } return Double.parseDouble(next()); Double.parseDouble(next()) Double.parseDouble Double next() next static String next() throws IOException {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    } next {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    } while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim()); st == null || !st.hasMoreTokens() st == null st null !st.hasMoreTokens() st.hasMoreTokens() st.hasMoreTokens st st = new StringTokenizer(br.readLine().trim()) st new StringTokenizer(br.readLine().trim()) return st.nextToken(); st.nextToken() st.nextToken st public class Main {
    static StringTokenizer st;
    static BufferedReader br;  
    static PrintWriter out;
 
    public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));

        //ArrayList myList = new ArrayList<>();

        int N = nextInt();

        // for(int i = 1; i<=N; i++){
        //     String S = next();
        //     if(!myList.contains(S)){
        //         myList.add(S);
        //     }
        // }
        
        String[] myList = new String[N];

        
        for(int i = 0; i<N; i++){
            String S = next();
            myList[i] = S;
        }

        Arrays.sort(myList);

        int count= 1;
        String Temp = myList[0];
        for(int i = 1; i<N; i++){
            if(!Temp.equals( myList[i])){
                count++;
                Temp = myList[i];
            }
        }

        System.out.println(count);
    }
    
      
    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }
    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }

    static String next() throws IOException {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    }
} public class Main {
    static StringTokenizer st;
    static BufferedReader br;  
    static PrintWriter out;
 
    public static void main(String[] args) throws IOException {
        br = new BufferedReader(new InputStreamReader(System.in));

        //ArrayList myList = new ArrayList<>();

        int N = nextInt();

        // for(int i = 1; i<=N; i++){
        //     String S = next();
        //     if(!myList.contains(S)){
        //         myList.add(S);
        //     }
        // }
        
        String[] myList = new String[N];

        
        for(int i = 0; i<N; i++){
            String S = next();
            myList[i] = S;
        }

        Arrays.sort(myList);

        int count= 1;
        String Temp = myList[0];
        for(int i = 1; i<N; i++){
            if(!Temp.equals( myList[i])){
                count++;
                Temp = myList[i];
            }
        }

        System.out.println(count);
    }
    
      
    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }
    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }

    static String next() throws IOException {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    }
} Main
import java.util.*; 
import java.io.*;

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

        //ArrayList myList = new ArrayList<>();

        int N = nextInt();

        // for(int i = 1; i<=N; i++){
        //     String S = next();
        //     if(!myList.contains(S)){
        //         myList.add(S);
        //     }
        // }
        
        String[] myList = new String[N];

        
        for(int i = 0; i<N; i++){
            String S = next();
            myList[i] = S;
        }

        Arrays.sort(myList);

        int count= 1;
        String Temp = myList[0];
        for(int i = 1; i<N; i++){
            if(!Temp.equals( myList[i])){
                count++;
                Temp = myList[i];
            }
        }

        System.out.println(count);
    }
    
      
    public static int nextInt() throws IOException {
        return Integer.parseInt(next());
    }
    public static long nextLong() throws IOException {
        return Long.parseLong(next());
    }

    public static double nextDouble() throws IOException {
        return Double.parseDouble(next());
    }

    static String next() throws IOException {
        while (st == null || !st.hasMoreTokens())
            st = new StringTokenizer(br.readLine().trim());
        return st.nextToken();
    }
}