import sys

from collections import Counter

N = int(eval(input()))

S = [str(s) for s in sys.stdin.read().split()]

items = list(dict.fromkeys(S))

print((len(items)))
import sys

N = int(eval(input()))

S = [str(s) for s in sys.stdin.read().split()]

print((len(set(S))))
import sys
from collections import Counter

N = int(eval(input()))
S = [str(s) for s in sys.stdin.read().split()]
items = list(dict.fromkeys(S))
print((len(items)))

import sys

N = int(eval(input()))
S = [str(s) for s in sys.stdin.read().split()]
print((len(set(S))))

-from collections import Counter -items = list(dict.fromkeys(S)) -print((len(items))) +print((len(set(S))))