Use long long instead of double