import sys

input = sys.stdin.readline



#n = int(input())

#l = list(map(int, input().split()))

'''

A=[]

B=[]

for i in range():

    a, b = map(int, input().split())

    A.append(a)

    B.append(b)'''

import collections



n= int(eval(input()))

s=[]

for i in range(n):

    s.append(input().rstrip())



ss=collections.Counter(s)

print((len(ss)))
import sys

input = sys.stdin.readline

#n = int(input())

#l = list(map(int, input().split()))

'''

A=[]

B=[]

for i in range():

    a, b = map(int, input().split())

    A.append(a)

    B.append(b)'''



n=int(eval(input()))

print((len(set([eval(input()) for i in range(n)]))))
import sys

input = sys.stdin.readline
# n = int(input())
# l = list(map(int, input().split()))
"""
A=[]
B=[]
for i in range():
    a, b = map(int, input().split())
    A.append(a)
    B.append(b)"""
import collections

n = int(eval(input()))
s = []
for i in range(n):
    s.append(input().rstrip())
ss = collections.Counter(s)
print((len(ss)))

import sys

input = sys.stdin.readline
# n = int(input())
# l = list(map(int, input().split()))
"""
A=[]
B=[]
for i in range():
    a, b = map(int, input().split())
    A.append(a)
    B.append(b)"""
n = int(eval(input()))
print((len(set([eval(input()) for i in range(n)]))))

-import collections - -s = [] -for i in range(n): -    s.append(input().rstrip()) -ss = collections.Counter(s) -print((len(ss))) +print((len(set([eval(input()) for i in range(n)]))))