Somebody placed digits $1, 2, 3, \ldots, 9$ around the circumference of a circle in an arbitrary order. Reading clockwise, three consecutive digits form a $3$-digit whole number. There are nine such $3$-digit numbers altogether. Find their sum.

Let's think step by step and output the final answer within \boxed{}.
user