integer a,b,c,answer
read*,a,b,c
answer=3
if(a==b)then
	answer=answer-1
endif
if(b==c)then
	answer=answer-1
endif
if(c==a)then
	answer=answer-1
endif
if(a==b.and.b==c)then
	answer=answer+1
endif
print"(i0)",answer
end