import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int ans = 1;
        String[] dic = new String[ n ];

        for( int i=0; i<n; i++ ){
           dic[i] = sc.next();
        }
        sc.close();
        Arrays.sort(dic);

        for( int j=0; j<n-1; j++ ){
            if( dic[ j ].equals( dic[ j+1 ] ) ){
            }else{
                ans++;
            }
        }
        System.out.println(ans);
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int ans = 1;
        String[] dic = new String[ n ];

        for( int i=0; i<n; i++ ){
           dic[i] = sc.next();
        }
        sc.close();
        Arrays.sort(dic);

        for( int j=0; j<n-1; j++ ){
            if( dic[ j ].equals( dic[ j+1 ] ) ){
            }else{
                ans++;
            }
        }
        System.out.println(ans);
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int ans = 1;
        String[] dic = new String[ n ];

        for( int i=0; i<n; i++ ){
           dic[i] = sc.next();
        }
        sc.close();
        Arrays.sort(dic);

        for( int j=0; j<n-1; j++ ){
            if( dic[ j ].equals( dic[ j+1 ] ) ){
            }else{
                ans++;
            }
        }
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int ans = 1;
        String[] dic = new String[ n ];

        for( int i=0; i<n; i++ ){
           dic[i] = sc.next();
        }
        sc.close();
        Arrays.sort(dic);

        for( int j=0; j<n-1; j++ ){
            if( dic[ j ].equals( dic[ j+1 ] ) ){
            }else{
                ans++;
            }
        }
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.next()); n Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int ans = 1; ans 1 String[] dic = new String[ n ]; dic new String[ n ] n for( int i=0; i<n; i++ ){
           dic[i] = sc.next();
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
           dic[i] = sc.next();
        } {
           dic[i] = sc.next();
        } dic[i] = sc.next() dic[i] dic i sc.next() sc.next sc sc.close() sc.close sc Arrays.sort(dic) Arrays.sort Arrays dic for( int j=0; j<n-1; j++ ){
            if( dic[ j ].equals( dic[ j+1 ] ) ){
            }else{
                ans++;
            }
        } int j=0; int j=0; j 0 j<n-1 j n-1 n 1 j++ j++ j {
            if( dic[ j ].equals( dic[ j+1 ] ) ){
            }else{
                ans++;
            }
        } {
            if( dic[ j ].equals( dic[ j+1 ] ) ){
            }else{
                ans++;
            }
        } if( dic[ j ].equals( dic[ j+1 ] ) ){
            }else{
                ans++;
            } dic[ j ].equals( dic[ j+1 ] ) dic[ j ].equals dic[ j ] dic j dic[ j+1 ] dic j+1 j 1 {
            } {
                ans++;
            } ans++ ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        int ans = 1;
        String[] dic = new String[ n ];

        for( int i=0; i<n; i++ ){
           dic[i] = sc.next();
        }
        sc.close();
        Arrays.sort(dic);

        for( int j=0; j<n-1; j++ ){
            if( dic[ j ].equals( dic[ j+1 ] ) ){
            }else{
                ans++;
            }
        }
        System.out.println(ans);
    }
}