Let $n$ be a positive integer. All numbers $m$ which are coprime to $n$ satisfy $m^6 \equiv 1 \pmod{n}$. Find the maximum possible value of $n$.

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