From the positive integers, $m, m+1, \dots, m+n$, only the sum of digits of $m$ and the sum of digits of $m+n$ are divisible by $8$. Find the maximum value of $n$.

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