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