import java.util.Scanner;
import java.util.HashSet;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    HashSet hs = new HashSet();
    for(int i=0; i<N; i++) {
      hs.add(scan.next());
    }
    scan.close();

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

    System.out.println(hs.size());
  }
} Main public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    HashSet hs = new HashSet();
    for(int i=0; i<N; i++) {
      hs.add(scan.next());
    }
    scan.close();

    System.out.println(hs.size());
  } main {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    HashSet hs = new HashSet();
    for(int i=0; i<N; i++) {
      hs.add(scan.next());
    }
    scan.close();

    System.out.println(hs.size());
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan HashSet hs = new HashSet(); hs new HashSet() for(int i=0; i<N; i++) {
      hs.add(scan.next());
    } int i=0; int i=0; i 0 i<N i N i++ i++ i {
      hs.add(scan.next());
    } {
      hs.add(scan.next());
    } hs.add(scan.next()) hs.add hs scan.next() scan.next scan scan.close() scan.close scan 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 scan = new Scanner(System.in);
    int N = scan.nextInt();
    HashSet hs = new HashSet();
    for(int i=0; i<N; i++) {
      hs.add(scan.next());
    }
    scan.close();

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

    System.out.println(hs.size());
  }
} Main
import java.util.Scanner;
import java.util.HashSet;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    HashSet hs = new HashSet();
    for(int i=0; i<N; i++) {
      hs.add(scan.next());
    }
    scan.close();

    System.out.println(hs.size());
  }
}