#define MD 998244353 ll@l,@r,@a,@b,@c;c>?=a+b;Mint x=max(r-l+1-c,0);wt(x*(x+1)*(3(r-l-a-b)-2x+5)/6);