import java.util.Scanner;
import java.util.HashSet;
import java.util.Set;
public class Main{
 public static void main(String[] args) {
   Scanner kbd = new Scanner(System.in);
   int n=kbd.nextInt();

   Set<String> set = new HashSet<>();
for (int i = 0; i < n; i++) {
set.add(kbd.next());}

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

} import java.util.Scanner; Scanner java.util import java.util.HashSet; HashSet java.util import java.util.Set; Set java.util public class Main{
 public static void main(String[] args) {
   Scanner kbd = new Scanner(System.in);
   int n=kbd.nextInt();

   Set<String> set = new HashSet<>();
for (int i = 0; i < n; i++) {
set.add(kbd.next());}

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

} Main public static void main(String[] args) {
   Scanner kbd = new Scanner(System.in);
   int n=kbd.nextInt();

   Set<String> set = new HashSet<>();
for (int i = 0; i < n; i++) {
set.add(kbd.next());}

System.out.println(set.size());
} main {
   Scanner kbd = new Scanner(System.in);
   int n=kbd.nextInt();

   Set<String> set = new HashSet<>();
for (int i = 0; i < n; i++) {
set.add(kbd.next());}

System.out.println(set.size());
} Scanner kbd = new Scanner(System.in); kbd new Scanner(System.in) int n=kbd.nextInt(); n kbd.nextInt() kbd.nextInt kbd Set<String> set = new HashSet<>(); set new HashSet<>() for (int i = 0; i < n; i++) {
set.add(kbd.next());} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
set.add(kbd.next());} {
set.add(kbd.next());} set.add(kbd.next()) set.add set kbd.next() kbd.next kbd 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) {
   Scanner kbd = new Scanner(System.in);
   int n=kbd.nextInt();

   Set<String> set = new HashSet<>();
for (int i = 0; i < n; i++) {
set.add(kbd.next());}

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

} public class Main{
 public static void main(String[] args) {
   Scanner kbd = new Scanner(System.in);
   int n=kbd.nextInt();

   Set<String> set = new HashSet<>();
for (int i = 0; i < n; i++) {
set.add(kbd.next());}

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

} Main
import java.util.Scanner;
import java.util.HashSet;
import java.util.Set;
public class Main{
 public static void main(String[] args) {
   Scanner kbd = new Scanner(System.in);
   int n=kbd.nextInt();

   Set<String> set = new HashSet<>();
for (int i = 0; i < n; i++) {
set.add(kbd.next());}

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

}
