import java.util.*;
import java.math.*;
public class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
String[] a=new String[n];
for(int i=0;i<n;i++)
a[i]=sc.next();
Set<String> s=new HashSet<>();
for(String x:a)
s.add(x);
System.out.println(s.size());
}} import java.util.*; util.* java import java.math.*; math.* java public class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
String[] a=new String[n];
for(int i=0;i<n;i++)
a[i]=sc.next();
Set<String> s=new HashSet<>();
for(String x:a)
s.add(x);
System.out.println(s.size());
}} Main public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
String[] a=new String[n];
for(int i=0;i<n;i++)
a[i]=sc.next();
Set<String> s=new HashSet<>();
for(String x:a)
s.add(x);
System.out.println(s.size());
} main {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
String[] a=new String[n];
for(int i=0;i<n;i++)
a[i]=sc.next();
Set<String> s=new HashSet<>();
for(String x:a)
s.add(x);
System.out.println(s.size());
} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc String[] a=new String[n]; a new String[n] n for(int i=0;i<n;i++)
a[i]=sc.next(); int i=0; int i=0; i 0 i<n i n i++ i++ i a[i]=sc.next(); a[i]=sc.next() a[i] a i sc.next() sc.next sc Set<String> s=new HashSet<>(); s new HashSet<>() for(String x:a)
s.add(x); String x a s.add(x); s.add(x) s.add s x System.out.println(s.size()) System.out.println System.out System System.out s.size() s.size s String args[] args public class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
String[] a=new String[n];
for(int i=0;i<n;i++)
a[i]=sc.next();
Set<String> s=new HashSet<>();
for(String x:a)
s.add(x);
System.out.println(s.size());
}} public class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
String[] a=new String[n];
for(int i=0;i<n;i++)
a[i]=sc.next();
Set<String> s=new HashSet<>();
for(String x:a)
s.add(x);
System.out.println(s.size());
}} Main
import java.util.*;
import java.math.*;
public class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
String[] a=new String[n];
for(int i=0;i<n;i++)
a[i]=sc.next();
Set<String> s=new HashSet<>();
for(String x:a)
s.add(x);
System.out.println(s.size());
}}