import java.io.IOException;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(String[] args) throws IOException{
		KagamiMochi solver = new KagamiMochi();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}

	static class KagamiMochi {

		private int n;
		private Set<String> d;
		private Scanner scanner;
		private int output;

		public KagamiMochi() {
			scanner = new Scanner(System.in);
			d = new HashSet<>();
		}
		public void readInput() {
			n = scanner.nextInt();
			for(int i=0; i<n; i++) {
				d.add(scanner.next());
			}
		}
		public void solve() {
			output = d.size();
		}

		public void writeOutput() {
			System.out.println(output);
		}
	}
} import java.io.IOException; IOException java.io import java.util.HashSet; HashSet java.util import java.util.Scanner; Scanner java.util import java.util.Set; Set java.util public class Main {

	public static void main(String[] args) throws IOException{
		KagamiMochi solver = new KagamiMochi();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}

	static class KagamiMochi {

		private int n;
		private Set<String> d;
		private Scanner scanner;
		private int output;

		public KagamiMochi() {
			scanner = new Scanner(System.in);
			d = new HashSet<>();
		}
		public void readInput() {
			n = scanner.nextInt();
			for(int i=0; i<n; i++) {
				d.add(scanner.next());
			}
		}
		public void solve() {
			output = d.size();
		}

		public void writeOutput() {
			System.out.println(output);
		}
	}
} Main public static void main(String[] args) throws IOException{
		KagamiMochi solver = new KagamiMochi();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	} main {
		KagamiMochi solver = new KagamiMochi();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	} KagamiMochi solver = new KagamiMochi(); solver new KagamiMochi() solver.readInput() solver.readInput solver solver.solve() solver.solve solver solver.writeOutput() solver.writeOutput solver String[] args args static class KagamiMochi {

		private int n;
		private Set<String> d;
		private Scanner scanner;
		private int output;

		public KagamiMochi() {
			scanner = new Scanner(System.in);
			d = new HashSet<>();
		}
		public void readInput() {
			n = scanner.nextInt();
			for(int i=0; i<n; i++) {
				d.add(scanner.next());
			}
		}
		public void solve() {
			output = d.size();
		}

		public void writeOutput() {
			System.out.println(output);
		}
	} KagamiMochi private int n; n private Set<String> d; d private Scanner scanner; scanner private int output; output public KagamiMochi() {
			scanner = new Scanner(System.in);
			d = new HashSet<>();
		} KagamiMochi {
			scanner = new Scanner(System.in);
			d = new HashSet<>();
		} scanner = new Scanner(System.in) scanner new Scanner(System.in) d = new HashSet<>() d new HashSet<>() public void readInput() {
			n = scanner.nextInt();
			for(int i=0; i<n; i++) {
				d.add(scanner.next());
			}
		} readInput {
			n = scanner.nextInt();
			for(int i=0; i<n; i++) {
				d.add(scanner.next());
			}
		} n = scanner.nextInt() n scanner.nextInt() scanner.nextInt scanner for(int i=0; i<n; i++) {
				d.add(scanner.next());
			} int i=0; int i=0; i 0 i<n i n i++ i++ i {
				d.add(scanner.next());
			} {
				d.add(scanner.next());
			} d.add(scanner.next()) d.add d scanner.next() scanner.next scanner public void solve() {
			output = d.size();
		} solve {
			output = d.size();
		} output = d.size() output d.size() d.size d public void writeOutput() {
			System.out.println(output);
		} writeOutput {
			System.out.println(output);
		} System.out.println(output) System.out.println System.out System System.out output public class Main {

	public static void main(String[] args) throws IOException{
		KagamiMochi solver = new KagamiMochi();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}

	static class KagamiMochi {

		private int n;
		private Set<String> d;
		private Scanner scanner;
		private int output;

		public KagamiMochi() {
			scanner = new Scanner(System.in);
			d = new HashSet<>();
		}
		public void readInput() {
			n = scanner.nextInt();
			for(int i=0; i<n; i++) {
				d.add(scanner.next());
			}
		}
		public void solve() {
			output = d.size();
		}

		public void writeOutput() {
			System.out.println(output);
		}
	}
} public class Main {

	public static void main(String[] args) throws IOException{
		KagamiMochi solver = new KagamiMochi();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}

	static class KagamiMochi {

		private int n;
		private Set<String> d;
		private Scanner scanner;
		private int output;

		public KagamiMochi() {
			scanner = new Scanner(System.in);
			d = new HashSet<>();
		}
		public void readInput() {
			n = scanner.nextInt();
			for(int i=0; i<n; i++) {
				d.add(scanner.next());
			}
		}
		public void solve() {
			output = d.size();
		}

		public void writeOutput() {
			System.out.println(output);
		}
	}
} Main
import java.io.IOException;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Main {

	public static void main(String[] args) throws IOException{
		KagamiMochi solver = new KagamiMochi();
		solver.readInput();
		solver.solve();
		solver.writeOutput();
	}

	static class KagamiMochi {

		private int n;
		private Set<String> d;
		private Scanner scanner;
		private int output;

		public KagamiMochi() {
			scanner = new Scanner(System.in);
			d = new HashSet<>();
		}
		public void readInput() {
			n = scanner.nextInt();
			for(int i=0; i<n; i++) {
				d.add(scanner.next());
			}
		}
		public void solve() {
			output = d.size();
		}

		public void writeOutput() {
			System.out.println(output);
		}
	}
}
