import java.util.*;

class Main {
    public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);
       int n = scan.nextInt();
        Set s = new HashSet();
        for (int i = 0; i < n; i++) {
            s.add(scan.next());
        }
        System.out.println(s.size());
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {

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

       Scanner scan = new Scanner(System.in);
       int n = scan.nextInt();
        Set s = new HashSet();
        for (int i = 0; i < n; i++) {
            s.add(scan.next());
        }
        System.out.println(s.size());
    } main {

       Scanner scan = new Scanner(System.in);
       int n = scan.nextInt();
        Set s = new HashSet();
        for (int i = 0; i < n; i++) {
            s.add(scan.next());
        }
        System.out.println(s.size());
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int n = scan.nextInt(); n scan.nextInt() scan.nextInt scan Set s = new HashSet(); s new HashSet() for (int i = 0; i < n; i++) {
            s.add(scan.next());
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            s.add(scan.next());
        } {
            s.add(scan.next());
        } s.add(scan.next()) s.add s scan.next() scan.next scan System.out.println(s.size()) System.out.println System.out System System.out s.size() s.size s String[] args args
import java.util.*;

class Main {
    public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);
       int n = scan.nextInt();
        Set s = new HashSet();
        for (int i = 0; i < n; i++) {
            s.add(scan.next());
        }
        System.out.println(s.size());
    }
}