import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        String s[] = new String[n];

        for(int i = 0; i < n; i++){
                s[i] = scan.next();
        }
        Arrays.sort(s);

        int ans = 1;
        for(int i = 0; i < n - 1; i++){
            if(!(s[i].equals(s[i+1]))){
                ans++;
            }
        }

        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        String s[] = new String[n];

        for(int i = 0; i < n; i++){
                s[i] = scan.next();
        }
        Arrays.sort(s);

        int ans = 1;
        for(int i = 0; i < n - 1; i++){
            if(!(s[i].equals(s[i+1]))){
                ans++;
            }
        }

        System.out.println(ans);
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        String s[] = new String[n];

        for(int i = 0; i < n; i++){
                s[i] = scan.next();
        }
        Arrays.sort(s);

        int ans = 1;
        for(int i = 0; i < n - 1; i++){
            if(!(s[i].equals(s[i+1]))){
                ans++;
            }
        }

        System.out.println(ans);
    } main {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        String s[] = new String[n];

        for(int i = 0; i < n; i++){
                s[i] = scan.next();
        }
        Arrays.sort(s);

        int ans = 1;
        for(int i = 0; i < n - 1; i++){
            if(!(s[i].equals(s[i+1]))){
                ans++;
            }
        }

        System.out.println(ans);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan String s[] = new String[n]; s new String[n] n for(int i = 0; i < n; i++){
                s[i] = scan.next();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
                s[i] = scan.next();
        } {
                s[i] = scan.next();
        } s[i] = scan.next() s[i] s i scan.next() scan.next scan Arrays.sort(s) Arrays.sort Arrays s int ans = 1; ans 1 for(int i = 0; i < n - 1; i++){
            if(!(s[i].equals(s[i+1]))){
                ans++;
            }
        } int i = 0; int i = 0; i 0 i < n - 1 i n - 1 n 1 i++ i++ i {
            if(!(s[i].equals(s[i+1]))){
                ans++;
            }
        } {
            if(!(s[i].equals(s[i+1]))){
                ans++;
            }
        } if(!(s[i].equals(s[i+1]))){
                ans++;
            } !(s[i].equals(s[i+1])) (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){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        String s[] = new String[n];

        for(int i = 0; i < n; i++){
                s[i] = scan.next();
        }
        Arrays.sort(s);

        int ans = 1;
        for(int i = 0; i < n - 1; i++){
            if(!(s[i].equals(s[i+1]))){
                ans++;
            }
        }

        System.out.println(ans);
    }
} public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        String s[] = new String[n];

        for(int i = 0; i < n; i++){
                s[i] = scan.next();
        }
        Arrays.sort(s);

        int ans = 1;
        for(int i = 0; i < n - 1; i++){
            if(!(s[i].equals(s[i+1]))){
                ans++;
            }
        }

        System.out.println(ans);
    }
} Main
import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        String s[] = new String[n];

        for(int i = 0; i < n; i++){
                s[i] = scan.next();
        }
        Arrays.sort(s);

        int ans = 1;
        for(int i = 0; i < n - 1; i++){
            if(!(s[i].equals(s[i+1]))){
                ans++;
            }
        }

        System.out.println(ans);
    }
}