from collections import Counter

A,B,C = list(map(int,input().split()))

print((len(Counter([A,B,C]).most_common())))
A,B,C = list(map(int,input().split()))



print((len(set([A,B,C]))))
from collections import Counter

A, B, C = list(map(int, input().split()))
print((len(Counter([A, B, C]).most_common())))

A, B, C = list(map(int, input().split()))
print((len(set([A, B, C]))))

-from collections import Counter - -print((len(Counter([A, B, C]).most_common()))) +print((len(set([A, B, C]))))