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