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

        HashSet<String> list = new HashSet<String>(N);

        for(int i = 0; i < N; i++){
            s = scanner.next();
            list.add(s);
        }

        System.out.println(list.size());
    }
} import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int N = scanner.nextInt();
        String s;

        HashSet<String> list = new HashSet<String>(N);

        for(int i = 0; i < N; i++){
            s = scanner.next();
            list.add(s);
        }

        System.out.println(list.size());
    }
} Main public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int N = scanner.nextInt();
        String s;

        HashSet<String> list = new HashSet<String>(N);

        for(int i = 0; i < N; i++){
            s = scanner.next();
            list.add(s);
        }

        System.out.println(list.size());
    } main {
        Scanner scanner = new Scanner(System.in);
        
        int N = scanner.nextInt();
        String s;

        HashSet<String> list = new HashSet<String>(N);

        for(int i = 0; i < N; i++){
            s = scanner.next();
            list.add(s);
        }

        System.out.println(list.size());
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner String s; s HashSet<String> list = new HashSet<String>(N); list new HashSet<String>(N) for(int i = 0; i < N; i++){
            s = scanner.next();
            list.add(s);
        } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
            s = scanner.next();
            list.add(s);
        } {
            s = scanner.next();
            list.add(s);
        } s = scanner.next() s scanner.next() scanner.next scanner list.add(s) list.add list s System.out.println(list.size()) System.out.println System.out System System.out list.size() list.size list String[] args args public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int N = scanner.nextInt();
        String s;

        HashSet<String> list = new HashSet<String>(N);

        for(int i = 0; i < N; i++){
            s = scanner.next();
            list.add(s);
        }

        System.out.println(list.size());
    }
} public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int N = scanner.nextInt();
        String s;

        HashSet<String> list = new HashSet<String>(N);

        for(int i = 0; i < N; i++){
            s = scanner.next();
            list.add(s);
        }

        System.out.println(list.size());
    }
} Main
import java.util.HashSet;
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        
        int N = scanner.nextInt();
        String s;

        HashSet<String> list = new HashSet<String>(N);

        for(int i = 0; i < N; i++){
            s = scanner.next();
            list.add(s);
        }

        System.out.println(list.size());
    }
}