Three red books, three white books, and three blue books are randomly stacked to form three piles of three books each. The probability that no book is the same color as the book immediately on top of it is $\frac{m}{n}$, where $m$ and $n$ are relatively prime positive integers. Find $m + n$.

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