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