void main() {
  problem();
}

void problem() {
  auto N = scan!ulong;

  ulong solve() {
    auto primes = primeFactoring(N);
    bool[ulong] used;
    bool[ulong] usedIndex;

    foreach(i, p; primes) {
      if (p in used) continue;

      N /= p;
      used[p] = true;
      usedIndex[i] = true;
    }
    deb(usedIndex.keys);

    while(true) {
      ulong stock = 1;
      const originN = N;
      foreach(i, p; primes) {
        if (i in usedIndex) continue;

        stock *= p;
        usedIndex[i] = true;
        if (stock in used) continue;

        N /= stock;
        used[stock] = true;
        break;
      }

      if (originN == N) break;
    }

    deb(usedIndex.keys);
    deb(used.keys);

    return used.keys.length;
  }

  solve().writeln;
}

// ----------------------------------------------

import std.stdio, std.conv, std.array, std.string, std.algorithm, std.container, std.range, core.stdc.stdlib, std.math, std.typecons, std.numeric;
T[][] combinations(T)(T[] s, in int m) {   if (!m) return [[]];   if (s.empty) return [];   return s[1 .. $].combinations(m - 1).map!(x => s[0] ~ x).array ~ s[1 .. $].combinations(m); }
string scan(){ static string[] ss; while(!ss.length) ss = readln.chomp.split; string res = ss[0]; ss.popFront; return res; }
T scan(T)(){ return scan.to!T; }
T[] scan(T)(int n){ return n.iota.map!(i => scan!T()).array; }
void deb(T ...)(T t){ debug writeln(t); }
alias Point = Tuple!(long, "x", long, "y");

ulong[] primeFactoring(ulong target)
{
  ulong s = target.to!float.sqrt().floor.to!ulong;
  ulong num = target;
  ulong[] primes;
	for (ulong i = 2; i <= s; i++) {
    if (num % i != 0) continue;

		while (num%i == 0) {
      num /= i;
      primes ~= i;
    }
	}
  if (num > s) primes ~= num;
	return primes;
}

// -----------------------------------------------
