import java.util.HashSet;
import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        HashSet<String> hs = new HashSet<String>();

        for(int i=0; i < N; i++){
            hs.add(sc.next());
        }

        System.out.println(hs.size());

        sc.close();
    }
} import java.util.HashSet; HashSet 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();
        HashSet<String> hs = new HashSet<String>();

        for(int i=0; i < N; i++){
            hs.add(sc.next());
        }

        System.out.println(hs.size());

        sc.close();
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        HashSet<String> hs = new HashSet<String>();

        for(int i=0; i < N; i++){
            hs.add(sc.next());
        }

        System.out.println(hs.size());

        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        HashSet<String> hs = new HashSet<String>();

        for(int i=0; i < N; i++){
            hs.add(sc.next());
        }

        System.out.println(hs.size());

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

        for(int i=0; i < N; i++){
            hs.add(sc.next());
        }

        System.out.println(hs.size());

        sc.close();
    }
} public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        HashSet<String> hs = new HashSet<String>();

        for(int i=0; i < N; i++){
            hs.add(sc.next());
        }

        System.out.println(hs.size());

        sc.close();
    }
} Main
import java.util.HashSet;
import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        HashSet<String> hs = new HashSet<String>();

        for(int i=0; i < N; i++){
            hs.add(sc.next());
        }

        System.out.println(hs.size());

        sc.close();
    }
}