N = int(eval(input()))

S = list()

for i in range(N):

  x = eval(input())

  S.append(x)

  

A = set(S)

print((len(A)))
N, *S = open(0).read().split()

print((len(set(S))))
N = int(eval(input()))
S = list()
for i in range(N):
    x = eval(input())
    S.append(x)
A = set(S)
print((len(A)))

N, *S = open(0).read().split()
print((len(set(S))))

-N = int(eval(input())) -S = list() -for i in range(N): -    x = eval(input()) -    S.append(x) -A = set(S) -print((len(A))) +N, *S = open(0).read().split() +print((len(set(S))))