remove template, all args use long long to make it look simpler, change function name as well