def zero_count(n)
  return 0 if n % 2 == 1
  n = n / 2
  count = 0
  div = 5
  exp = 1
  while div <= n
    count += n / div
    exp += 1
    div = 5**exp
  end
  count
end
puts zero_count(gets.to_i)
