Let $M$ and $m$ be, respectively, the greatest and the least ten-digit numbers that are rearrangements of the digits $0$ through $9$ such that no two adjacent digits are consecutive. Find $M - m$.

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