Find the largest positive integer value of $n < 1000$ such that $\phi(36n) = \phi(25n) + \phi(16n)$, where $\phi(n)$ denotes the number of positive integers less than $n$ that are relatively prime to $n$.

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