import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int N= scan.nextInt();
        HashSet hs = new HashSet();
        for(int i=0;i<N;i++){
            hs.add(scan.next());
        }
        System.out.println(hs.size());
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int N= scan.nextInt();
        HashSet hs = new HashSet();
        for(int i=0;i<N;i++){
            hs.add(scan.next());
        }
        System.out.println(hs.size());
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int N= scan.nextInt();
        HashSet hs = new HashSet();
        for(int i=0;i<N;i++){
            hs.add(scan.next());
        }
        System.out.println(hs.size());
    } main {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int N= scan.nextInt();
        HashSet hs = new HashSet();
        for(int i=0;i<N;i++){
            hs.add(scan.next());
        }
        System.out.println(hs.size());
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N= scan.nextInt(); N scan.nextInt() scan.nextInt scan HashSet hs = new HashSet(); hs new HashSet() for(int i=0;i<N;i++){
            hs.add(scan.next());
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            hs.add(scan.next());
        } {
            hs.add(scan.next());
        } hs.add(scan.next()) hs.add hs scan.next() scan.next scan System.out.println(hs.size()) System.out.println System.out System System.out hs.size() hs.size hs String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int N= scan.nextInt();
        HashSet hs = new HashSet();
        for(int i=0;i<N;i++){
            hs.add(scan.next());
        }
        System.out.println(hs.size());
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int N= scan.nextInt();
        HashSet hs = new HashSet();
        for(int i=0;i<N;i++){
            hs.add(scan.next());
        }
        System.out.println(hs.size());
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner scan = new Scanner(System.in);
        int N= scan.nextInt();
        HashSet hs = new HashSet();
        for(int i=0;i<N;i++){
            hs.add(scan.next());
        }
        System.out.println(hs.size());
    }
}
