import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();

    HashMap<String,String> map = new HashMap<String,String>();

    for(int i = 0; i < n; i++) {
      String str = sc.next();
      map.put(str,str);
    }
    System.out.println(map.size());

    sc.close();
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();

    HashMap<String,String> map = new HashMap<String,String>();

    for(int i = 0; i < n; i++) {
      String str = sc.next();
      map.put(str,str);
    }
    System.out.println(map.size());

    sc.close();
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();

    HashMap<String,String> map = new HashMap<String,String>();

    for(int i = 0; i < n; i++) {
      String str = sc.next();
      map.put(str,str);
    }
    System.out.println(map.size());

    sc.close();
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();

    HashMap<String,String> map = new HashMap<String,String>();

    for(int i = 0; i < n; i++) {
      String str = sc.next();
      map.put(str,str);
    }
    System.out.println(map.size());

    sc.close();
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc HashMap<String,String> map = new HashMap<String,String>(); map new HashMap<String,String>() for(int i = 0; i < n; i++) {
      String str = sc.next();
      map.put(str,str);
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      String str = sc.next();
      map.put(str,str);
    } {
      String str = sc.next();
      map.put(str,str);
    } String str = sc.next(); str sc.next() sc.next sc map.put(str,str) map.put map str str System.out.println(map.size()) System.out.println System.out System System.out map.size() map.size map sc.close() sc.close sc String[] args args
import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();

    HashMap<String,String> map = new HashMap<String,String>();

    for(int i = 0; i < n; i++) {
      String str = sc.next();
      map.put(str,str);
    }
    System.out.println(map.size());

    sc.close();
  }
}