local n=io.read("n")

local p={}
for i=2,math.sqrt(n) do
    if n%i==0 then
        local counter=0
        while n%i==0 do
            n=n//i
            counter=counter+1
        end
        table.insert(p, counter)
    end
end
if n>1 then
    table.insert(p,1)
end

local counter=0
for i=1,#p do
    local j=1
    while j<=p[i] do
        p[i]=p[i]-j
        j=j+1
        counter=counter+1
    end
end
print(counter)