from collections import Counter

a = list(input().split())

print((len(Counter(a))))
a = list(map(int, input().split()))

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

a = list(input().split())
print((len(Counter(a))))

a = list(map(int, input().split()))
print((len(set(a))))

-from collections import Counter - -a = list(input().split()) -print((len(Counter(a)))) +a = list(map(int, input().split())) +print((len(set(a))))