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

public class Main{
  public static void main(String[] args)throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try{
      int N = Integer.parseInt(br.readLine());
      Set<String> set = new HashSet<>();
      for(int i = 0; i < N; i++){
        set.add(br.readLine());
      }
      System.out.println(set.size());
    }catch(Exception e){
    }
  }
} import java.util.*; util.* java import java.io.*; io.* java public class Main{
  public static void main(String[] args)throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try{
      int N = Integer.parseInt(br.readLine());
      Set<String> set = new HashSet<>();
      for(int i = 0; i < N; i++){
        set.add(br.readLine());
      }
      System.out.println(set.size());
    }catch(Exception e){
    }
  }
} Main public static void main(String[] args)throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try{
      int N = Integer.parseInt(br.readLine());
      Set<String> set = new HashSet<>();
      for(int i = 0; i < N; i++){
        set.add(br.readLine());
      }
      System.out.println(set.size());
    }catch(Exception e){
    }
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try{
      int N = Integer.parseInt(br.readLine());
      Set<String> set = new HashSet<>();
      for(int i = 0; i < N; i++){
        set.add(br.readLine());
      }
      System.out.println(set.size());
    }catch(Exception e){
    }
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try{
      int N = Integer.parseInt(br.readLine());
      Set<String> set = new HashSet<>();
      for(int i = 0; i < N; i++){
        set.add(br.readLine());
      }
      System.out.println(set.size());
    }catch(Exception e){
    } catch(Exception e){
    } Exception e {
    } {
      int N = Integer.parseInt(br.readLine());
      Set<String> set = new HashSet<>();
      for(int i = 0; i < N; i++){
        set.add(br.readLine());
      }
      System.out.println(set.size());
    } int N = Integer.parseInt(br.readLine()); N Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br Set<String> set = new HashSet<>(); set new HashSet<>() for(int i = 0; i < N; i++){
        set.add(br.readLine());
      } int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
        set.add(br.readLine());
      } {
        set.add(br.readLine());
      } set.add(br.readLine()) set.add set br.readLine() br.readLine br 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)throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try{
      int N = Integer.parseInt(br.readLine());
      Set<String> set = new HashSet<>();
      for(int i = 0; i < N; i++){
        set.add(br.readLine());
      }
      System.out.println(set.size());
    }catch(Exception e){
    }
  }
} public class Main{
  public static void main(String[] args)throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try{
      int N = Integer.parseInt(br.readLine());
      Set<String> set = new HashSet<>();
      for(int i = 0; i < N; i++){
        set.add(br.readLine());
      }
      System.out.println(set.size());
    }catch(Exception e){
    }
  }
} Main
import java.util.*;
import java.io.*;

public class Main{
  public static void main(String[] args)throws Exception{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    try{
      int N = Integer.parseInt(br.readLine());
      Set<String> set = new HashSet<>();
      for(int i = 0; i < N; i++){
        set.add(br.readLine());
      }
      System.out.println(set.size());
    }catch(Exception e){
    }
  }
}