import java.util.*;
class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();sc.nextLine();
    int count=1;
    String hashh[]=new String[n];
    for(int i=0;i<n;i++){
      hashh[i]=sc.nextLine();
    }
    Arrays.sort(hashh);
    for(int i=1;i<n;i++){
      if(!hashh[i-1].equals(hashh[i])){
        count++;
      }
    }
    pl(count+"");
  }

  public static void pr(String str){
    System.out.print(str);
  }
  public static void pl(String str){
    System.out.println(str);
  }
} import java.util.*; util.* java class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();sc.nextLine();
    int count=1;
    String hashh[]=new String[n];
    for(int i=0;i<n;i++){
      hashh[i]=sc.nextLine();
    }
    Arrays.sort(hashh);
    for(int i=1;i<n;i++){
      if(!hashh[i-1].equals(hashh[i])){
        count++;
      }
    }
    pl(count+"");
  }

  public static void pr(String str){
    System.out.print(str);
  }
  public static void pl(String str){
    System.out.println(str);
  }
} Main public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();sc.nextLine();
    int count=1;
    String hashh[]=new String[n];
    for(int i=0;i<n;i++){
      hashh[i]=sc.nextLine();
    }
    Arrays.sort(hashh);
    for(int i=1;i<n;i++){
      if(!hashh[i-1].equals(hashh[i])){
        count++;
      }
    }
    pl(count+"");
  } main {
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();sc.nextLine();
    int count=1;
    String hashh[]=new String[n];
    for(int i=0;i<n;i++){
      hashh[i]=sc.nextLine();
    }
    Arrays.sort(hashh);
    for(int i=1;i<n;i++){
      if(!hashh[i-1].equals(hashh[i])){
        count++;
      }
    }
    pl(count+"");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc sc.nextLine() sc.nextLine sc int count=1; count 1 String hashh[]=new String[n]; hashh new String[n] n for(int i=0;i<n;i++){
      hashh[i]=sc.nextLine();
    } int i=0; int i=0; i 0 i<n i n i++ i++ i {
      hashh[i]=sc.nextLine();
    } {
      hashh[i]=sc.nextLine();
    } hashh[i]=sc.nextLine() hashh[i] hashh i sc.nextLine() sc.nextLine sc Arrays.sort(hashh) Arrays.sort Arrays hashh for(int i=1;i<n;i++){
      if(!hashh[i-1].equals(hashh[i])){
        count++;
      }
    } int i=1; int i=1; i 1 i<n i n i++ i++ i {
      if(!hashh[i-1].equals(hashh[i])){
        count++;
      }
    } {
      if(!hashh[i-1].equals(hashh[i])){
        count++;
      }
    } if(!hashh[i-1].equals(hashh[i])){
        count++;
      } !hashh[i-1].equals(hashh[i]) hashh[i-1].equals(hashh[i]) hashh[i-1].equals hashh[i-1] hashh i-1 i 1 hashh[i] hashh i {
        count++;
      } count++ count pl(count+"") pl count+"" count "" String args[] args public static void pr(String str){
    System.out.print(str);
  } pr {
    System.out.print(str);
  } System.out.print(str) System.out.print System.out System System.out str String str str public static void pl(String str){
    System.out.println(str);
  } pl {
    System.out.println(str);
  } System.out.println(str) System.out.println System.out System System.out str String str str
import java.util.*;
class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();sc.nextLine();
    int count=1;
    String hashh[]=new String[n];
    for(int i=0;i<n;i++){
      hashh[i]=sc.nextLine();
    }
    Arrays.sort(hashh);
    for(int i=1;i<n;i++){
      if(!hashh[i-1].equals(hashh[i])){
        count++;
      }
    }
    pl(count+"");
  }

  public static void pr(String str){
    System.out.print(str);
  }
  public static void pl(String str){
    System.out.println(str);
  }
}
