ll@N,@A,@B;wt(sum[n,0,N@n%A>n%B](1));