import java.util.*;
import java.io.*;
import java.math.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    //配列の定義.
    String a[] = new String[n];
    for(int i = 0; i < n; i++) {
      a[i] = sc.next();
    }
    Arrays.sort(a);
    int ans = n;
    for(int i = 0; i < n - 1; i++) {
      //文字列の比較
      //a[i] == a[i + 1]でなく .equals を使う.
      if(a[i].equals(a[i + 1])) ans--;
    }
    System.out.println(ans);
  }
}
 import java.util.*; util.* java import java.io.*; io.* java import java.math.*; math.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    //配列の定義.
    String a[] = new String[n];
    for(int i = 0; i < n; i++) {
      a[i] = sc.next();
    }
    Arrays.sort(a);
    int ans = n;
    for(int i = 0; i < n - 1; i++) {
      //文字列の比較
      //a[i] == a[i + 1]でなく .equals を使う.
      if(a[i].equals(a[i + 1])) ans--;
    }
    System.out.println(ans);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    //配列の定義.
    String a[] = new String[n];
    for(int i = 0; i < n; i++) {
      a[i] = sc.next();
    }
    Arrays.sort(a);
    int ans = n;
    for(int i = 0; i < n - 1; i++) {
      //文字列の比較
      //a[i] == a[i + 1]でなく .equals を使う.
      if(a[i].equals(a[i + 1])) ans--;
    }
    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    //配列の定義.
    String a[] = new String[n];
    for(int i = 0; i < n; i++) {
      a[i] = sc.next();
    }
    Arrays.sort(a);
    int ans = n;
    for(int i = 0; i < n - 1; i++) {
      //文字列の比較
      //a[i] == a[i + 1]でなく .equals を使う.
      if(a[i].equals(a[i + 1])) ans--;
    }
    System.out.println(ans);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String a[] = new String[n]; a new String[n] n for(int i = 0; i < n; i++) {
      a[i] = sc.next();
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      a[i] = sc.next();
    } {
      a[i] = sc.next();
    } a[i] = sc.next() a[i] a i sc.next() sc.next sc Arrays.sort(a) Arrays.sort Arrays a int ans = n; ans n for(int i = 0; i < n - 1; i++) {
      //文字列の比較
      //a[i] == a[i + 1]でなく .equals を使う.
      if(a[i].equals(a[i + 1])) ans--;
    } int i = 0; int i = 0; i 0 i < n - 1 i n - 1 n 1 i++ i++ i {
      //文字列の比較
      //a[i] == a[i + 1]でなく .equals を使う.
      if(a[i].equals(a[i + 1])) ans--;
    } {
      //文字列の比較
      //a[i] == a[i + 1]でなく .equals を使う.
      if(a[i].equals(a[i + 1])) ans--;
    } if(a[i].equals(a[i + 1])) ans--; a[i].equals(a[i + 1]) a[i].equals a[i] a i a[i + 1] a i + 1 i 1 ans-- ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    //配列の定義.
    String a[] = new String[n];
    for(int i = 0; i < n; i++) {
      a[i] = sc.next();
    }
    Arrays.sort(a);
    int ans = n;
    for(int i = 0; i < n - 1; i++) {
      //文字列の比較
      //a[i] == a[i + 1]でなく .equals を使う.
      if(a[i].equals(a[i + 1])) ans--;
    }
    System.out.println(ans);
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    //配列の定義.
    String a[] = new String[n];
    for(int i = 0; i < n; i++) {
      a[i] = sc.next();
    }
    Arrays.sort(a);
    int ans = n;
    for(int i = 0; i < n - 1; i++) {
      //文字列の比較
      //a[i] == a[i + 1]でなく .equals を使う.
      if(a[i].equals(a[i + 1])) ans--;
    }
    System.out.println(ans);
  }
} Main
import java.util.*;
import java.io.*;
import java.math.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    //配列の定義.
    String a[] = new String[n];
    for(int i = 0; i < n; i++) {
      a[i] = sc.next();
    }
    Arrays.sort(a);
    int ans = n;
    for(int i = 0; i < n - 1; i++) {
      //文字列の比較
      //a[i] == a[i + 1]でなく .equals を使う.
      if(a[i].equals(a[i + 1])) ans--;
    }
    System.out.println(ans);
  }
}

