/*
 * FileName:     D
 * CreatedDate:  2020-05-31 22:04:17 +0900
 * LastModified: 2020-05-31 22:07:13 +0900
 */

#include <stdio.h>

int main(void){
    long long int n;scanf("%lld",&n);
    int count=0;
    for(int i=2;;i++){
        if(n%i==0){
            n=n/i;
            count++;
            continue;
        }
        if(n<i){
            printf("%d\n",count);
            return 0;
        }
    }
    
    return 0;
}
