Fixed progress problem by using long long int