Buggy python submission (verdict: Runtime Error):
import math
import sys
from collections import defaultdict
from itertools import product, permutations, combinations

sys.setrecursionlimit(10**7)
def input():
    return sys.stdin.readline()[:-1]

N = int(input())

if N%2:
    print(0)
    exit()

print(sum([N//(2*5**i) for i in range(1, 50)]))

import math
import sys
from collections import defaultdict
from itertools import product, permutations, combinations

sys.setrecursionlimit(10**7)
def input():
    return sys.stdin.readline()[:-1]

N = int(input())

if N%2:
    print(0)
    exit()

print(sum([N//(2*5**i) for i in range(1, 50)]))



Fixed submission:
import math
import sys
from collections import defaultdict
from itertools import product, permutations, combinations

sys.setrecursionlimit(10**7)
def input():
    return sys.stdin.readline()[:-1]


N = int(input())
if N % 2:
    print(0)
    exit()
else:
    N //= 2

ans = 0
while N > 0:
    N //= 5
    ans += N
print(ans)

Buggy python submission (verdict: Runtime Error):
import math
import sys
from collections import defaultdict
from itertools import product, permutations, combinations

sys.setrecursionlimit(10**7)
def input():
    return sys.stdin.readline()[:-1]

N = int(input())

if N%2:
    print(0)
    exit()

v = math.floor(math.log(N, 5))

print(sum([N//(2*5**i) for i in range(1, v+1)]))



Fixed submission:
import math
import sys
from collections import defaultdict
from itertools import product, permutations, combinations

sys.setrecursionlimit(10**7)
def input():
    return sys.stdin.readline()[:-1]


N = int(input())
if N % 2:
    print(0)
    exit()
else:
    N //= 2

ans = 0
while N > 0:
    N //= 5
    ans += N
print(ans)

Buggy python submission (verdict: Runtime Error):
import math
import sys
from collections import defaultdict
from itertools import product, permutations, combinations

sys.setrecursionlimit(10**7)

N = int(input())


if N%2 == 1:
    print(0)
    exit()

v = math.log(N, 5)

l = [i for i in range(1, math.floor(v+1))]
ll = [2*5**i for i in l]
lll = [N//i for i in ll]
print(sum(lll))

Fixed submission:
import math
import sys
from collections import defaultdict
from itertools import product, permutations, combinations

sys.setrecursionlimit(10**7)
def input():
    return sys.stdin.readline()[:-1]


N = int(input())
if N % 2:
    print(0)
    exit()
else:
    N //= 2

ans = 0
while N > 0:
    N //= 5
    ans += N
print(ans)

Buggy python submission (verdict: Runtime Error):
import math
import sys
from collections import defaultdict
from itertools import product, permutations, combinations

sys.setrecursionlimit(10**7)

N = int(input())


if N%2 == 1:
    print(0)
    exit()

v = math.log(N, 5)

l = [i for i in range(1, math.floor(v+1))]
ll = [2*5**i for i in l]
lll = [N//i for i in ll]
print(sum(lll))

Fixed submission:
import math
import sys
from collections import defaultdict
from itertools import product, permutations, combinations

sys.setrecursionlimit(10**7)
def input():
    return sys.stdin.readline()[:-1]


N = int(input())
if N % 2:
    print(0)
    exit()
else:
    N //= 2

ans = 0
while N > 0:
    N //= 5
    ans += N
print(ans)

Buggy python submission (verdict: Runtime Error):
import math
import sys
from collections import defaultdict
from itertools import product, permutations, combinations

sys.setrecursionlimit(10**7)
def input():
    return sys.stdin.readline()[:-1]

N = int(input())


if N%2 == 1:
    print(0)
    exit()

v = math.log(N, 5)

l = [i for i in range(1, math.floor(v+1))]
ll = [2*5**i for i in l]
lll = [N//i for i in ll]
print(sum(lll))

Fixed submission:
import math
import sys
from collections import defaultdict
from itertools import product, permutations, combinations

sys.setrecursionlimit(10**7)
def input():
    return sys.stdin.readline()[:-1]


N = int(input())
if N % 2:
    print(0)
    exit()
else:
    N //= 2

ans = 0
while N > 0:
    N //= 5
    ans += N
print(ans)