import collections



pen = list(map(str,input().split()))



print((len(collections.Counter(pen))))







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



if a == b == c:

    print((1))

elif a == b or b == c or c ==a:

    print((2))

else:

    print((3))
import collections

pen = list(map(str, input().split()))
print((len(collections.Counter(pen))))

a, b, c = list(map(int, input().split()))
if a == b == c:
    print((1))
elif a == b or b == c or c == a:
    print((2))
else:
    print((3))

-import collections - -pen = list(map(str, input().split())) -print((len(collections.Counter(pen)))) +a, b, c = list(map(int, input().split())) +if a == b == c: +    print((1)) +elif a == b or b == c or c == a: +    print((2)) +else: +    print((3))