#include using namespace std; using Int = long long; template inline void chmin(T1 &a,T2 b){if(a>b) a=b;} template inline void chmax(T1 &a,T2 b){if(a>l>>r>>n; auto calc= [&](Int x,Int y){ Int res=x/n; if(y!=0&&y<=x%n) res++; return res; }; for(Int i=0;i