Let $S = \{1, 2, \dots, 9\}$. Compute the number of functions $f : S \rightarrow S$ such that, for all $s \in S$, $f(f(f(s))) = s$ and $f(s) - s$ is not divisible by $3$.

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