class Main{
public static void main
(String[] args
){ java.
util.
Scanner in
= new java.
util.
Scanner(System.
in); long n = in.nextInt(), m = 5, s = 0;
while(n >= m){
s = s + (n / m);
m = m * 5;
}
}
}
Y2xhc3MgTWFpbnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKXsKCQlqYXZhLnV0aWwuU2Nhbm5lciBpbiA9IG5ldyBqYXZhLnV0aWwuU2Nhbm5lcihTeXN0ZW0uaW4pOyAKCQlsb25nIG4gPSBpbi5uZXh0SW50KCksIG0gPSA1LCBzID0gMDsKCQl3aGlsZShuID49IG0pewoJCQlzID0gcyArIChuIC8gbSk7IAoJCQltID0gbSAqIDU7CgkJfQoJCVN5c3RlbS5vdXQucHJpbnRsbihzKTsKCX0KfQ==