import java.util.Scanner;

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

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