#include int Z(int N) { long i2,i5; int i=2; i2=i5=0; while(N>i) { i2+=N/i; i=i*2; } i=5; while(N>i) { i5+=N/i; i=i*5; } if (i5