def prime_fact(N): from collections import defaultdict res=defaultdict(int) for i in range(2,int(N**0.5)+2): if N%i==0: while N%i==0: res[i]+=1 N//=i if N!=1: res[N]+=1 return res n = int(input()) d = prime_fact(n) ans = 0 for x, y in d.items(): ans += x * y print(ans)