fun main(args: Array<String>){
    var N = readLine()!!.toLong()
    var ans :Long = 0
    if(N % 2 == 0L){
        N /= 2

        var div : Long = 5

        while(div <= N){
            ans += N /div
            div *=5
        }

    }


    println(ans)



}