import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int n = sc.nextInt();
        
        String[] b = new String[n];
        for(int i=0;i<n;i++){
            b[i] = sc.next();
        }
        Arrays.sort(b);
        String tmp = "";
        int cnt = 0;
        for(int i=0;i<n;i++){
            if(!tmp.equals(b[i])){
                cnt++;
                tmp = b[i];
            }
        }

        System.out.println(cnt);
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int n = sc.nextInt();
        
        String[] b = new String[n];
        for(int i=0;i<n;i++){
            b[i] = sc.next();
        }
        Arrays.sort(b);
        String tmp = "";
        int cnt = 0;
        for(int i=0;i<n;i++){
            if(!tmp.equals(b[i])){
                cnt++;
                tmp = b[i];
            }
        }

        System.out.println(cnt);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int n = sc.nextInt();
        
        String[] b = new String[n];
        for(int i=0;i<n;i++){
            b[i] = sc.next();
        }
        Arrays.sort(b);
        String tmp = "";
        int cnt = 0;
        for(int i=0;i<n;i++){
            if(!tmp.equals(b[i])){
                cnt++;
                tmp = b[i];
            }
        }

        System.out.println(cnt);
    } main {
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int n = sc.nextInt();
        
        String[] b = new String[n];
        for(int i=0;i<n;i++){
            b[i] = sc.next();
        }
        Arrays.sort(b);
        String tmp = "";
        int cnt = 0;
        for(int i=0;i<n;i++){
            if(!tmp.equals(b[i])){
                cnt++;
                tmp = b[i];
            }
        }

        System.out.println(cnt);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String[] b = new String[n]; b new String[n] n for(int i=0;i<n;i++){
            b[i] = sc.next();
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            b[i] = sc.next();
        } {
            b[i] = sc.next();
        } b[i] = sc.next() b[i] b i sc.next() sc.next sc Arrays.sort(b) Arrays.sort Arrays b String tmp = ""; tmp "" int cnt = 0; cnt 0 for(int i=0;i<n;i++){
            if(!tmp.equals(b[i])){
                cnt++;
                tmp = b[i];
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            if(!tmp.equals(b[i])){
                cnt++;
                tmp = b[i];
            }
        } {
            if(!tmp.equals(b[i])){
                cnt++;
                tmp = b[i];
            }
        } if(!tmp.equals(b[i])){
                cnt++;
                tmp = b[i];
            } !tmp.equals(b[i]) tmp.equals(b[i]) tmp.equals tmp b[i] b i {
                cnt++;
                tmp = b[i];
            } cnt++ cnt tmp = b[i] tmp b[i] b i System.out.println(cnt) System.out.println System.out System System.out cnt String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int n = sc.nextInt();
        
        String[] b = new String[n];
        for(int i=0;i<n;i++){
            b[i] = sc.next();
        }
        Arrays.sort(b);
        String tmp = "";
        int cnt = 0;
        for(int i=0;i<n;i++){
            if(!tmp.equals(b[i])){
                cnt++;
                tmp = b[i];
            }
        }

        System.out.println(cnt);
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int n = sc.nextInt();
        
        String[] b = new String[n];
        for(int i=0;i<n;i++){
            b[i] = sc.next();
        }
        Arrays.sort(b);
        String tmp = "";
        int cnt = 0;
        for(int i=0;i<n;i++){
            if(!tmp.equals(b[i])){
                cnt++;
                tmp = b[i];
            }
        }

        System.out.println(cnt);
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 整数の入力
        int n = sc.nextInt();
        
        String[] b = new String[n];
        for(int i=0;i<n;i++){
            b[i] = sc.next();
        }
        Arrays.sort(b);
        String tmp = "";
        int cnt = 0;
        for(int i=0;i<n;i++){
            if(!tmp.equals(b[i])){
                cnt++;
                tmp = b[i];
            }
        }

        System.out.println(cnt);
    }
}
