package main import . "fmt" func main() { var n,k int Scan(&n) for i:=2;i<=n;i++ { for n%i==0 { k+=i n/=i } } Println(k) }