n = int(eval(input()))

d = [int(eval(input())) for _ in range(n)]

print((len(set(d))))
from collections import Counter



n = int(eval(input()))

d = [int(eval(input())) for _ in range(n)]



dict = Counter(d)

print((len(list(dict.keys()))))
n = int(eval(input()))
d = [int(eval(input())) for _ in range(n)]
print((len(set(d))))

from collections import Counter

n = int(eval(input()))
d = [int(eval(input())) for _ in range(n)]
dict = Counter(d)
print((len(list(dict.keys()))))

+from collections import Counter + -print((len(set(d)))) +dict = Counter(d) +print((len(list(dict.keys()))))