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