
import java.util.*;
public class Main{
 public static void main(String[] args) {
   Scanner kbd = new Scanner(System.in);
   int n=kbd.nextInt();
   String[] A= new String[n];
   for(int i=0;i<n;i++){
     A[i]=kbd.next();
}
int x=1;
Arrays.sort(A);
for(int i=0;i<n-1;i++){
if(!(A[i].equals(A[i+1]))){
  x=x+1;
}
}
System.out.println(x);
}
} import java.util.*; util.* java public class Main{
 public static void main(String[] args) {
   Scanner kbd = new Scanner(System.in);
   int n=kbd.nextInt();
   String[] A= new String[n];
   for(int i=0;i<n;i++){
     A[i]=kbd.next();
}
int x=1;
Arrays.sort(A);
for(int i=0;i<n-1;i++){
if(!(A[i].equals(A[i+1]))){
  x=x+1;
}
}
System.out.println(x);
}
} Main public static void main(String[] args) {
   Scanner kbd = new Scanner(System.in);
   int n=kbd.nextInt();
   String[] A= new String[n];
   for(int i=0;i<n;i++){
     A[i]=kbd.next();
}
int x=1;
Arrays.sort(A);
for(int i=0;i<n-1;i++){
if(!(A[i].equals(A[i+1]))){
  x=x+1;
}
}
System.out.println(x);
} main {
   Scanner kbd = new Scanner(System.in);
   int n=kbd.nextInt();
   String[] A= new String[n];
   for(int i=0;i<n;i++){
     A[i]=kbd.next();
}
int x=1;
Arrays.sort(A);
for(int i=0;i<n-1;i++){
if(!(A[i].equals(A[i+1]))){
  x=x+1;
}
}
System.out.println(x);
} Scanner kbd = new Scanner(System.in); kbd new Scanner(System.in) int n=kbd.nextInt(); n kbd.nextInt() kbd.nextInt kbd String[] A= new String[n]; A new String[n] n for(int i=0;i<n;i++){
     A[i]=kbd.next();
} int i=0; int i=0; i 0 i<n i n i++ i++ i {
     A[i]=kbd.next();
} {
     A[i]=kbd.next();
} A[i]=kbd.next() A[i] A i kbd.next() kbd.next kbd int x=1; x 1 Arrays.sort(A) Arrays.sort Arrays A for(int i=0;i<n-1;i++){
if(!(A[i].equals(A[i+1]))){
  x=x+1;
}
} int i=0; int i=0; i 0 i<n-1 i n-1 n 1 i++ i++ i {
if(!(A[i].equals(A[i+1]))){
  x=x+1;
}
} {
if(!(A[i].equals(A[i+1]))){
  x=x+1;
}
} if(!(A[i].equals(A[i+1]))){
  x=x+1;
} !(A[i].equals(A[i+1])) (A[i].equals(A[i+1])) A[i].equals A[i] A i A[i+1] A i+1 i 1 {
  x=x+1;
} x=x+1 x x+1 x 1 System.out.println(x) System.out.println System.out System System.out x String[] args args public class Main{
 public static void main(String[] args) {
   Scanner kbd = new Scanner(System.in);
   int n=kbd.nextInt();
   String[] A= new String[n];
   for(int i=0;i<n;i++){
     A[i]=kbd.next();
}
int x=1;
Arrays.sort(A);
for(int i=0;i<n-1;i++){
if(!(A[i].equals(A[i+1]))){
  x=x+1;
}
}
System.out.println(x);
}
} public class Main{
 public static void main(String[] args) {
   Scanner kbd = new Scanner(System.in);
   int n=kbd.nextInt();
   String[] A= new String[n];
   for(int i=0;i<n;i++){
     A[i]=kbd.next();
}
int x=1;
Arrays.sort(A);
for(int i=0;i<n-1;i++){
if(!(A[i].equals(A[i+1]))){
  x=x+1;
}
}
System.out.println(x);
}
} Main

import java.util.*;
public class Main{
 public static void main(String[] args) {
   Scanner kbd = new Scanner(System.in);
   int n=kbd.nextInt();
   String[] A= new String[n];
   for(int i=0;i<n;i++){
     A[i]=kbd.next();
}
int x=1;
Arrays.sort(A);
for(int i=0;i<n-1;i++){
if(!(A[i].equals(A[i+1]))){
  x=x+1;
}
}
System.out.println(x);
}
}
