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

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String[] strList = new String[n];
        for(int i = 0; i<n; i++){
            strList[i] = sc.next();
        }
        
        Arrays.sort(strList);
        int count = 0;

        count++;
        for(int i = 0; i<n-1; i++){
            if(!strList[i].equals(strList[i+1])){
                count++;
            }
        }
        System.out.println(count);
    }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String[] strList = new String[n];
        for(int i = 0; i<n; i++){
            strList[i] = sc.next();
        }
        
        Arrays.sort(strList);
        int count = 0;

        count++;
        for(int i = 0; i<n-1; i++){
            if(!strList[i].equals(strList[i+1])){
                count++;
            }
        }
        System.out.println(count);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String[] strList = new String[n];
        for(int i = 0; i<n; i++){
            strList[i] = sc.next();
        }
        
        Arrays.sort(strList);
        int count = 0;

        count++;
        for(int i = 0; i<n-1; i++){
            if(!strList[i].equals(strList[i+1])){
                count++;
            }
        }
        System.out.println(count);
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String[] strList = new String[n];
        for(int i = 0; i<n; i++){
            strList[i] = sc.next();
        }
        
        Arrays.sort(strList);
        int count = 0;

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

        count++;
        for(int i = 0; i<n-1; i++){
            if(!strList[i].equals(strList[i+1])){
                count++;
            }
        }
        System.out.println(count);
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String[] strList = new String[n];
        for(int i = 0; i<n; i++){
            strList[i] = sc.next();
        }
        
        Arrays.sort(strList);
        int count = 0;

        count++;
        for(int i = 0; i<n-1; i++){
            if(!strList[i].equals(strList[i+1])){
                count++;
            }
        }
        System.out.println(count);
    }
} Main
import java.util.Scanner;
import java.util.Arrays;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        String[] strList = new String[n];
        for(int i = 0; i<n; i++){
            strList[i] = sc.next();
        }
        
        Arrays.sort(strList);
        int count = 0;

        count++;
        for(int i = 0; i<n-1; i++){
            if(!strList[i].equals(strList[i+1])){
                count++;
            }
        }
        System.out.println(count);
    }
}