import java.util.*;
import java.util.ArrayDeque;
import java.util.Queue;
import java.math.RoundingMode;
import java.math.BigDecimal;



public class Main{
	 public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
	   	int n = sc.nextInt();
	   	String[] s = new String[n];
	   	int sum = 1;
	   	for(int i = 0; i < n; i++){
	   		s[i] = sc.next();
	   	}
	   	Arrays.sort(s);
	   	for(int i = 1; i < n; i++) {
	   		if(!s[i].equals(s[i-1])) {
	   			sum++;
	   		} 
	   	}
	   	System.out.println(sum);
	}
} import java.util.*; util.* java import java.util.ArrayDeque; ArrayDeque java.util import java.util.Queue; Queue java.util import java.math.RoundingMode; RoundingMode java.math import java.math.BigDecimal; BigDecimal java.math public class Main{
	 public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
	   	int n = sc.nextInt();
	   	String[] s = new String[n];
	   	int sum = 1;
	   	for(int i = 0; i < n; i++){
	   		s[i] = sc.next();
	   	}
	   	Arrays.sort(s);
	   	for(int i = 1; i < n; i++) {
	   		if(!s[i].equals(s[i-1])) {
	   			sum++;
	   		} 
	   	}
	   	System.out.println(sum);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
	   	int n = sc.nextInt();
	   	String[] s = new String[n];
	   	int sum = 1;
	   	for(int i = 0; i < n; i++){
	   		s[i] = sc.next();
	   	}
	   	Arrays.sort(s);
	   	for(int i = 1; i < n; i++) {
	   		if(!s[i].equals(s[i-1])) {
	   			sum++;
	   		} 
	   	}
	   	System.out.println(sum);
	} main {
		Scanner sc = new Scanner(System.in);
	   	int n = sc.nextInt();
	   	String[] s = new String[n];
	   	int sum = 1;
	   	for(int i = 0; i < n; i++){
	   		s[i] = sc.next();
	   	}
	   	Arrays.sort(s);
	   	for(int i = 1; i < n; i++) {
	   		if(!s[i].equals(s[i-1])) {
	   			sum++;
	   		} 
	   	}
	   	System.out.println(sum);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc String[] s = new String[n]; s new String[n] n int sum = 1; sum 1 for(int i = 0; i < n; i++){
	   		s[i] = sc.next();
	   	} int i = 0; int i = 0; i 0 i < n i n 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 for(int i = 1; i < n; i++) {
	   		if(!s[i].equals(s[i-1])) {
	   			sum++;
	   		} 
	   	} int i = 1; int i = 1; i 1 i < n i n i++ i++ i {
	   		if(!s[i].equals(s[i-1])) {
	   			sum++;
	   		} 
	   	} {
	   		if(!s[i].equals(s[i-1])) {
	   			sum++;
	   		} 
	   	} if(!s[i].equals(s[i-1])) {
	   			sum++;
	   		} !s[i].equals(s[i-1]) s[i].equals(s[i-1]) s[i].equals s[i] s i s[i-1] s i-1 i 1 {
	   			sum++;
	   		} sum++ sum System.out.println(sum) System.out.println System.out System System.out sum String[] args args public class Main{
	 public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
	   	int n = sc.nextInt();
	   	String[] s = new String[n];
	   	int sum = 1;
	   	for(int i = 0; i < n; i++){
	   		s[i] = sc.next();
	   	}
	   	Arrays.sort(s);
	   	for(int i = 1; i < n; i++) {
	   		if(!s[i].equals(s[i-1])) {
	   			sum++;
	   		} 
	   	}
	   	System.out.println(sum);
	}
} public class Main{
	 public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
	   	int n = sc.nextInt();
	   	String[] s = new String[n];
	   	int sum = 1;
	   	for(int i = 0; i < n; i++){
	   		s[i] = sc.next();
	   	}
	   	Arrays.sort(s);
	   	for(int i = 1; i < n; i++) {
	   		if(!s[i].equals(s[i-1])) {
	   			sum++;
	   		} 
	   	}
	   	System.out.println(sum);
	}
} Main
import java.util.*;
import java.util.ArrayDeque;
import java.util.Queue;
import java.math.RoundingMode;
import java.math.BigDecimal;



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