g(a,b){return b?g(b,a%b):a;} long n,l,h,c[10],s,r,j,p; f(i,w,t)long w; { if(!t)s+=(h/w-l/w)*r*p; else if(i