import java.util.Scanner;
import java.util.TreeMap;
import java.util.Map;

public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
    Map<String,Integer>map = new TreeMap<String,Integer>();
    for(int i = 0;i < N;i++){
      map.put(scanner.next(),0);
    }
    System.out.println(map.size());
  }
} import java.util.Scanner; Scanner java.util import java.util.TreeMap; TreeMap java.util import java.util.Map; Map java.util public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
    Map<String,Integer>map = new TreeMap<String,Integer>();
    for(int i = 0;i < N;i++){
      map.put(scanner.next(),0);
    }
    System.out.println(map.size());
  }
} Main public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
    Map<String,Integer>map = new TreeMap<String,Integer>();
    for(int i = 0;i < N;i++){
      map.put(scanner.next(),0);
    }
    System.out.println(map.size());
  } main {
    Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
    Map<String,Integer>map = new TreeMap<String,Integer>();
    for(int i = 0;i < N;i++){
      map.put(scanner.next(),0);
    }
    System.out.println(map.size());
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int N = scanner.nextInt(); N scanner.nextInt() scanner.nextInt scanner Map<String,Integer>map = new TreeMap<String,Integer>(); map new TreeMap<String,Integer>() for(int i = 0;i < N;i++){
      map.put(scanner.next(),0);
    } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
      map.put(scanner.next(),0);
    } {
      map.put(scanner.next(),0);
    } map.put(scanner.next(),0) map.put map scanner.next() scanner.next scanner 0 System.out.println(map.size()) System.out.println System.out System System.out map.size() map.size map String[] args args public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
    Map<String,Integer>map = new TreeMap<String,Integer>();
    for(int i = 0;i < N;i++){
      map.put(scanner.next(),0);
    }
    System.out.println(map.size());
  }
} public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
    Map<String,Integer>map = new TreeMap<String,Integer>();
    for(int i = 0;i < N;i++){
      map.put(scanner.next(),0);
    }
    System.out.println(map.size());
  }
} Main
import java.util.Scanner;
import java.util.TreeMap;
import java.util.Map;

public class Main{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int N = scanner.nextInt();
    Map<String,Integer>map = new TreeMap<String,Integer>();
    for(int i = 0;i < N;i++){
      map.put(scanner.next(),0);
    }
    System.out.println(map.size());
  }
}