import java.util.*;


class Main{
	public static void main(String args[]){
		
		Scanner sc=new Scanner(System.in);
		
		int n=sc.nextInt();
		String[] kinds = new String[n];
		
		int ans=1;
		
		for(int i=0;i<n;i++){
			kinds[i] = sc.next();
		}
		
		Arrays.sort(kinds);
		
		for(int i=1;i<n;i++){
		  		
		//System.out.print(kinds[i]);
			if(kinds[i].equals(kinds[i-1])==false)ans++;
		}
		
		System.out.print(ans);
	}
}
	

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


class Main{
	public static void main(String args[]){
		
		Scanner sc=new Scanner(System.in);
		
		int n=sc.nextInt();
		String[] kinds = new String[n];
		
		int ans=1;
		
		for(int i=0;i<n;i++){
			kinds[i] = sc.next();
		}
		
		Arrays.sort(kinds);
		
		for(int i=1;i<n;i++){
		  		
		//System.out.print(kinds[i]);
			if(kinds[i].equals(kinds[i-1])==false)ans++;
		}
		
		System.out.print(ans);
	}
}
	


