import java.util.*;
public class Main {
        public static void main(String[] args){
                Scanner sc = new Scanner(System.in);
                int n = sc.nextInt();
                String[] a = new String[n];
                for(int i = 0 ; i < n ; i++){
                        a[i] = sc.next();
                }
                sc.close();
                Arrays.sort(a);
                int yono = 1;
                for(int i = 1 ; i < n ; i++){
                        if(!a[i - 1].equals(a[i])) yono++;
                }
                System.out.println(yono);
        }
} import java.util.*; util.* java public class Main {
        public static void main(String[] args){
                Scanner sc = new Scanner(System.in);
                int n = sc.nextInt();
                String[] a = new String[n];
                for(int i = 0 ; i < n ; i++){
                        a[i] = sc.next();
                }
                sc.close();
                Arrays.sort(a);
                int yono = 1;
                for(int i = 1 ; i < n ; i++){
                        if(!a[i - 1].equals(a[i])) yono++;
                }
                System.out.println(yono);
        }
} Main public static void main(String[] args){
                Scanner sc = new Scanner(System.in);
                int n = sc.nextInt();
                String[] a = new String[n];
                for(int i = 0 ; i < n ; i++){
                        a[i] = sc.next();
                }
                sc.close();
                Arrays.sort(a);
                int yono = 1;
                for(int i = 1 ; i < n ; i++){
                        if(!a[i - 1].equals(a[i])) yono++;
                }
                System.out.println(yono);
        } main {
                Scanner sc = new Scanner(System.in);
                int n = sc.nextInt();
                String[] a = new String[n];
                for(int i = 0 ; i < n ; i++){
                        a[i] = sc.next();
                }
                sc.close();
                Arrays.sort(a);
                int yono = 1;
                for(int i = 1 ; i < n ; i++){
                        if(!a[i - 1].equals(a[i])) yono++;
                }
                System.out.println(yono);
        } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String[] a = new String[n]; a new String[n] n for(int i = 0 ; i < n ; i++){
                        a[i] = sc.next();
                } int i = 0 ; int i = 0 ; i 0 i < n i n i++ i++ i {
                        a[i] = sc.next();
                } {
                        a[i] = sc.next();
                } a[i] = sc.next() a[i] a i sc.next() sc.next sc sc.close() sc.close sc Arrays.sort(a) Arrays.sort Arrays a int yono = 1; yono 1 for(int i = 1 ; i < n ; i++){
                        if(!a[i - 1].equals(a[i])) yono++;
                } int i = 1 ; int i = 1 ; i 1 i < n i n i++ i++ i {
                        if(!a[i - 1].equals(a[i])) yono++;
                } {
                        if(!a[i - 1].equals(a[i])) yono++;
                } if(!a[i - 1].equals(a[i])) yono++; !a[i - 1].equals(a[i]) a[i - 1].equals(a[i]) a[i - 1].equals a[i - 1] a i - 1 i 1 a[i] a i yono++ yono System.out.println(yono) System.out.println System.out System System.out yono String[] args args public class Main {
        public static void main(String[] args){
                Scanner sc = new Scanner(System.in);
                int n = sc.nextInt();
                String[] a = new String[n];
                for(int i = 0 ; i < n ; i++){
                        a[i] = sc.next();
                }
                sc.close();
                Arrays.sort(a);
                int yono = 1;
                for(int i = 1 ; i < n ; i++){
                        if(!a[i - 1].equals(a[i])) yono++;
                }
                System.out.println(yono);
        }
} public class Main {
        public static void main(String[] args){
                Scanner sc = new Scanner(System.in);
                int n = sc.nextInt();
                String[] a = new String[n];
                for(int i = 0 ; i < n ; i++){
                        a[i] = sc.next();
                }
                sc.close();
                Arrays.sort(a);
                int yono = 1;
                for(int i = 1 ; i < n ; i++){
                        if(!a[i - 1].equals(a[i])) yono++;
                }
                System.out.println(yono);
        }
} Main
import java.util.*;
public class Main {
        public static void main(String[] args){
                Scanner sc = new Scanner(System.in);
                int n = sc.nextInt();
                String[] a = new String[n];
                for(int i = 0 ; i < n ; i++){
                        a[i] = sc.next();
                }
                sc.close();
                Arrays.sort(a);
                int yono = 1;
                for(int i = 1 ; i < n ; i++){
                        if(!a[i - 1].equals(a[i])) yono++;
                }
                System.out.println(yono);
        }
}