import java.util.Scanner;
import java.util.Arrays;

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);
//    System.out.println(Arrays.toString(a));
    int count = 1;
    for(int j = 1;j < n;j++){
      if(a[j].equals(a[j - 1])){
        count--;
      }
      count++;
    }
    System.out.println(count);
  }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util 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);
//    System.out.println(Arrays.toString(a));
    int count = 1;
    for(int j = 1;j < n;j++){
      if(a[j].equals(a[j - 1])){
        count--;
      }
      count++;
    }
    System.out.println(count);
  }
} 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);
//    System.out.println(Arrays.toString(a));
    int count = 1;
    for(int j = 1;j < n;j++){
      if(a[j].equals(a[j - 1])){
        count--;
      }
      count++;
    }
    System.out.println(count);
  } 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);
//    System.out.println(Arrays.toString(a));
    int count = 1;
    for(int j = 1;j < n;j++){
      if(a[j].equals(a[j - 1])){
        count--;
      }
      count++;
    }
    System.out.println(count);
  } 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 count = 1; count 1 for(int j = 1;j < n;j++){
      if(a[j].equals(a[j - 1])){
        count--;
      }
      count++;
    } int j = 1; int j = 1; j 1 j < n j n j++ j++ j {
      if(a[j].equals(a[j - 1])){
        count--;
      }
      count++;
    } {
      if(a[j].equals(a[j - 1])){
        count--;
      }
      count++;
    } if(a[j].equals(a[j - 1])){
        count--;
      } a[j].equals(a[j - 1]) a[j].equals a[j] a j a[j - 1] a j - 1 j 1 {
        count--;
      } count-- count count++ count System.out.println(count) System.out.println System.out System System.out count 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);
//    System.out.println(Arrays.toString(a));
    int count = 1;
    for(int j = 1;j < n;j++){
      if(a[j].equals(a[j - 1])){
        count--;
      }
      count++;
    }
    System.out.println(count);
  }
} 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);
//    System.out.println(Arrays.toString(a));
    int count = 1;
    for(int j = 1;j < n;j++){
      if(a[j].equals(a[j - 1])){
        count--;
      }
      count++;
    }
    System.out.println(count);
  }
} Main
import java.util.Scanner;
import java.util.Arrays;

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);
//    System.out.println(Arrays.toString(a));
    int count = 1;
    for(int j = 1;j < n;j++){
      if(a[j].equals(a[j - 1])){
        count--;
      }
      count++;
    }
    System.out.println(count);
  }
}