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

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

int i=0;
for(i=0;i<n;i++){
    a[i]=scan.next();
}
Arrays.sort(a);

i=0;
int sum=0;
for(i=0;i<n-1;i++){
  if(a[i].equals(a[i+1])){
    sum=sum;
  }else{
    sum=sum+1;
  }
}
  

System.out.println(sum+1);


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

int i=0;
for(i=0;i<n;i++){
    a[i]=scan.next();
}
Arrays.sort(a);

i=0;
int sum=0;
for(i=0;i<n-1;i++){
  if(a[i].equals(a[i+1])){
    sum=sum;
  }else{
    sum=sum+1;
  }
}
  

System.out.println(sum+1);


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

int i=0;
for(i=0;i<n;i++){
    a[i]=scan.next();
}
Arrays.sort(a);

i=0;
int sum=0;
for(i=0;i<n-1;i++){
  if(a[i].equals(a[i+1])){
    sum=sum;
  }else{
    sum=sum+1;
  }
}
  

System.out.println(sum+1);


} main {
Scanner scan=new Scanner(System.in);
int n=scan.nextInt();
String[] a=new String[n];

int i=0;
for(i=0;i<n;i++){
    a[i]=scan.next();
}
Arrays.sort(a);

i=0;
int sum=0;
for(i=0;i<n-1;i++){
  if(a[i].equals(a[i+1])){
    sum=sum;
  }else{
    sum=sum+1;
  }
}
  

System.out.println(sum+1);


} Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int n=scan.nextInt(); n scan.nextInt() scan.nextInt scan String[] a=new String[n]; a new String[n] n int i=0; i 0 for(i=0;i<n;i++){
    a[i]=scan.next();
} i=0; i=0 i 0 i<n i n i++ i++ i {
    a[i]=scan.next();
} {
    a[i]=scan.next();
} a[i]=scan.next() a[i] a i scan.next() scan.next scan Arrays.sort(a) Arrays.sort Arrays a i=0 i 0 int sum=0; sum 0 for(i=0;i<n-1;i++){
  if(a[i].equals(a[i+1])){
    sum=sum;
  }else{
    sum=sum+1;
  }
} i=0; i=0 i 0 i<n-1 i n-1 n 1 i++ i++ i {
  if(a[i].equals(a[i+1])){
    sum=sum;
  }else{
    sum=sum+1;
  }
} {
  if(a[i].equals(a[i+1])){
    sum=sum;
  }else{
    sum=sum+1;
  }
} if(a[i].equals(a[i+1])){
    sum=sum;
  }else{
    sum=sum+1;
  } a[i].equals(a[i+1]) a[i].equals a[i] a i a[i+1] a i+1 i 1 {
    sum=sum;
  } sum=sum sum sum {
    sum=sum+1;
  } sum=sum+1 sum sum+1 sum 1 System.out.println(sum+1) System.out.println System.out System System.out sum+1 sum 1 String[] args args public class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int n=scan.nextInt();
String[] a=new String[n];

int i=0;
for(i=0;i<n;i++){
    a[i]=scan.next();
}
Arrays.sort(a);

i=0;
int sum=0;
for(i=0;i<n-1;i++){
  if(a[i].equals(a[i+1])){
    sum=sum;
  }else{
    sum=sum+1;
  }
}
  

System.out.println(sum+1);


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

int i=0;
for(i=0;i<n;i++){
    a[i]=scan.next();
}
Arrays.sort(a);

i=0;
int sum=0;
for(i=0;i<n-1;i++){
  if(a[i].equals(a[i+1])){
    sum=sum;
  }else{
    sum=sum+1;
  }
}
  

System.out.println(sum+1);


}
} Main
import java.util.Scanner;
import java.util.Arrays;

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

int i=0;
for(i=0;i<n;i++){
    a[i]=scan.next();
}
Arrays.sort(a);

i=0;
int sum=0;
for(i=0;i<n-1;i++){
  if(a[i].equals(a[i+1])){
    sum=sum;
  }else{
    sum=sum+1;
  }
}
  

System.out.println(sum+1);


}
}