import java.util.*; 

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

  		String[] s=new String[n];
		for(int c=0;c<n;c++){
    		s[c]=sc.next();
    	}
		Arrays.sort(s); 
  		if(n==1){
        ans=1;
        }else{
  		for(int d=0;d<n-1;d++){
        if(!s[d].equals(s[d+1])){
        ans++;
        }
        }
          ans++;
        }

    	System.out.println(ans);
    }
} import java.util.*; util.* java class Main{
public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int ans=0;

  		String[] s=new String[n];
		for(int c=0;c<n;c++){
    		s[c]=sc.next();
    	}
		Arrays.sort(s); 
  		if(n==1){
        ans=1;
        }else{
  		for(int d=0;d<n-1;d++){
        if(!s[d].equals(s[d+1])){
        ans++;
        }
        }
          ans++;
        }

    	System.out.println(ans);
    }
} Main public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int ans=0;

  		String[] s=new String[n];
		for(int c=0;c<n;c++){
    		s[c]=sc.next();
    	}
		Arrays.sort(s); 
  		if(n==1){
        ans=1;
        }else{
  		for(int d=0;d<n-1;d++){
        if(!s[d].equals(s[d+1])){
        ans++;
        }
        }
          ans++;
        }

    	System.out.println(ans);
    } main {
	Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int ans=0;

  		String[] s=new String[n];
		for(int c=0;c<n;c++){
    		s[c]=sc.next();
    	}
		Arrays.sort(s); 
  		if(n==1){
        ans=1;
        }else{
  		for(int d=0;d<n-1;d++){
        if(!s[d].equals(s[d+1])){
        ans++;
        }
        }
          ans++;
        }

    	System.out.println(ans);
    } Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int ans=0; ans 0 String[] s=new String[n]; s new String[n] n for(int c=0;c<n;c++){
    		s[c]=sc.next();
    	} int c=0; int c=0; c 0 c<n c n c++ c++ c {
    		s[c]=sc.next();
    	} {
    		s[c]=sc.next();
    	} s[c]=sc.next() s[c] s c sc.next() sc.next sc Arrays.sort(s) Arrays.sort Arrays s if(n==1){
        ans=1;
        }else{
  		for(int d=0;d<n-1;d++){
        if(!s[d].equals(s[d+1])){
        ans++;
        }
        }
          ans++;
        } n==1 n 1 {
        ans=1;
        } ans=1 ans 1 {
  		for(int d=0;d<n-1;d++){
        if(!s[d].equals(s[d+1])){
        ans++;
        }
        }
          ans++;
        } for(int d=0;d<n-1;d++){
        if(!s[d].equals(s[d+1])){
        ans++;
        }
        } int d=0; int d=0; d 0 d<n-1 d n-1 n 1 d++ d++ d {
        if(!s[d].equals(s[d+1])){
        ans++;
        }
        } {
        if(!s[d].equals(s[d+1])){
        ans++;
        }
        } if(!s[d].equals(s[d+1])){
        ans++;
        } !s[d].equals(s[d+1]) s[d].equals(s[d+1]) s[d].equals s[d] s d s[d+1] s d+1 d 1 {
        ans++;
        } ans++ ans ans++ ans System.out.println(ans) System.out.println 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();
        int ans=0;

  		String[] s=new String[n];
		for(int c=0;c<n;c++){
    		s[c]=sc.next();
    	}
		Arrays.sort(s); 
  		if(n==1){
        ans=1;
        }else{
  		for(int d=0;d<n-1;d++){
        if(!s[d].equals(s[d+1])){
        ans++;
        }
        }
          ans++;
        }

    	System.out.println(ans);
    }
}