import java.util.*;

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

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

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

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

} Main
import java.util.*;

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

}
