program ABC046A
    implicit none
    integer(8)::a,b,c
    integer(8)::count=0
    read(5,*)a,b,c

    if(a/=b)then
        count=2
        if(a/=c.and.b/=c)count=count+1
    else
        count=1
        if(a/=c)count=count+1
    end if
    print'(i0)',count
end program ABC046A