public static int calculateNumberOfTrailingZerosInFactorial(int N){
		int countTwo = 0, countFive=0;
		for(int i = 1; i<=N; i++){
			if(i%2==0){
				countTwo++;
				int temp = i;
				while((temp/2)%2 == 0){
					countTwo++;
					temp/=2;
				}
			}
			if(i%5==0){ 
				countFive++;
				int temp = i;
				while((temp/5)%5 == 0){
					countFive++;
					temp/=5;
				}
			}
		}

		return Math.min(countTwo, countFive);
	}