import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	int a=sc.nextInt();
  	String[] s= new String[a];
  	
  	for(int i=0;i<a;i++){
  		s[i]=sc.next();
  	}
  	Arrays.sort(s);
  	int f=1;
  	
  	for(int i=1;i<a;i++){
  		if(s[0].equals(s[i])){
  		}else{
  			s[0]=s[i];
  			f++;
  		}
  	}
  	System.out.print(f);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	int a=sc.nextInt();
  	String[] s= new String[a];
  	
  	for(int i=0;i<a;i++){
  		s[i]=sc.next();
  	}
  	Arrays.sort(s);
  	int f=1;
  	
  	for(int i=1;i<a;i++){
  		if(s[0].equals(s[i])){
  		}else{
  			s[0]=s[i];
  			f++;
  		}
  	}
  	System.out.print(f);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	int a=sc.nextInt();
  	String[] s= new String[a];
  	
  	for(int i=0;i<a;i++){
  		s[i]=sc.next();
  	}
  	Arrays.sort(s);
  	int f=1;
  	
  	for(int i=1;i<a;i++){
  		if(s[0].equals(s[i])){
  		}else{
  			s[0]=s[i];
  			f++;
  		}
  	}
  	System.out.print(f);
  } main {
    Scanner sc = new Scanner(System.in);
  	int a=sc.nextInt();
  	String[] s= new String[a];
  	
  	for(int i=0;i<a;i++){
  		s[i]=sc.next();
  	}
  	Arrays.sort(s);
  	int f=1;
  	
  	for(int i=1;i<a;i++){
  		if(s[0].equals(s[i])){
  		}else{
  			s[0]=s[i];
  			f++;
  		}
  	}
  	System.out.print(f);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a=sc.nextInt(); a sc.nextInt() sc.nextInt sc String[] s= new String[a]; s new String[a] a for(int i=0;i<a;i++){
  		s[i]=sc.next();
  	} int i=0; int i=0; i 0 i<a i a i++ i++ i {
  		s[i]=sc.next();
  	} {
  		s[i]=sc.next();
  	} s[i]=sc.next() s[i] s i sc.next() sc.next sc Arrays.sort(s) Arrays.sort Arrays s int f=1; f 1 for(int i=1;i<a;i++){
  		if(s[0].equals(s[i])){
  		}else{
  			s[0]=s[i];
  			f++;
  		}
  	} int i=1; int i=1; i 1 i<a i a i++ i++ i {
  		if(s[0].equals(s[i])){
  		}else{
  			s[0]=s[i];
  			f++;
  		}
  	} {
  		if(s[0].equals(s[i])){
  		}else{
  			s[0]=s[i];
  			f++;
  		}
  	} if(s[0].equals(s[i])){
  		}else{
  			s[0]=s[i];
  			f++;
  		} s[0].equals(s[i]) s[0].equals s[0] s 0 s[i] s i {
  		} {
  			s[0]=s[i];
  			f++;
  		} s[0]=s[i] s[0] s 0 s[i] s i f++ f System.out.print(f) System.out.print System.out System System.out f String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	int a=sc.nextInt();
  	String[] s= new String[a];
  	
  	for(int i=0;i<a;i++){
  		s[i]=sc.next();
  	}
  	Arrays.sort(s);
  	int f=1;
  	
  	for(int i=1;i<a;i++){
  		if(s[0].equals(s[i])){
  		}else{
  			s[0]=s[i];
  			f++;
  		}
  	}
  	System.out.print(f);
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	int a=sc.nextInt();
  	String[] s= new String[a];
  	
  	for(int i=0;i<a;i++){
  		s[i]=sc.next();
  	}
  	Arrays.sort(s);
  	int f=1;
  	
  	for(int i=1;i<a;i++){
  		if(s[0].equals(s[i])){
  		}else{
  			s[0]=s[i];
  			f++;
  		}
  	}
  	System.out.print(f);
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
  	int a=sc.nextInt();
  	String[] s= new String[a];
  	
  	for(int i=0;i<a;i++){
  		s[i]=sc.next();
  	}
  	Arrays.sort(s);
  	int f=1;
  	
  	for(int i=1;i<a;i++){
  		if(s[0].equals(s[i])){
  		}else{
  			s[0]=s[i];
  			f++;
  		}
  	}
  	System.out.print(f);
  }
}