$$d_1, d_2$$, and $$d_3$$ are nonzero digits. $$S$$ is the sum of the three 3-digit positive integers $$d_1d_2d_3, d_2d_3d_1$$, and $$d_3d_1d_2$$. For example, if $$d_1, d_2$$, and $$d_3$$ are 2, 4, and 7, respectively, then S=247+472+724=1,443.
Quantity B
111($$d_1+d_2+d_3$$)