import java.util.Scanner

import scala.collection.mutable
import scala.util.control.Breaks

object Main {
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val n = sc.nextLong()

    val bb = new Breaks
    var m = n
    val yaku = mutable.Set.empty[Long]

    while (m != 1) {
      bb.breakable {
        (2 to Math.ceil(Math.sqrt(m)).toInt).foreach { i =>
          if (m % i == 0 && !yaku.contains(i)) {
            m = m / i
            yaku += i
            bb.break()
          }
        }

        yaku += m
        m = 1
      }
    }

    println(yaku.size)
  }
  
}
