<reponame>kushagra1212/Competitive-Programming<gh_stars>100-1000
# Enter your code here. Read input from STDIN. Print output to STDOUT
n=int(input())
country_name=set(input() for i in range(n))
print(len(country_name))


# Enter your code here. Read input from STDIN. Print output to STDOUT
n=int(input())
country_name=set(input() for i in range(n))
print(len(country_name))
# Enter your code here. Read input from STDIN. Print output to STDOUT