a, b, c = tuple(map(int, input().split()))
print(len({a, b, c}))

ce1955ebc9c446d421e996ca8e27291fee8a2928
<mask token>

<mask token>
print(len({a, b, c}))

a, b, c = tuple(map(int, input().split()))
print(len({a, b, c}))
