#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define ALL(v) v.begin(),v.end()
typedef long long ll;
 
#include<bits/stdc++.h>
using namespace std;

map<ll,ll> prime_factor(ll x){
  map<ll,ll> res;
  
  for(ll i=2;i*i<=x;i++){
    while(x%i==0){
      res[i]++;
      x/=i;
    }
  }
  if(x!=1) res[x]++;
  
  return res;
}

int main(){
  ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  
  ll n;
  cin>>n;
  
  map<ll,ll> m=prime_factor(n);
  
  ll ans=0;
  for(auto [a,b]:m) ans+=a*b;
  cout<<ans<<endl;
  
  
  return 0;
}