import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  var n = sc.nextLong()
  var i: Long = 2
  var ans = 0
  while (i * i <= n) {
    var cnt = 0;
    while (n % i == 0) {
      cnt += 1
      n /= i
    }
    if (cnt > 0) {
      var k = 1;
      while (k * (k + 1) / 2 <= cnt) k += 1
      ans += k - 1
    }
    i += 1
  }
  if (n != 1) ans += 1
  println(ans)
}
