Let $A$, $M$, and $C$ be nonnegative integers such that $A+M+C=10$. Find the maximum value of $A \cdot M \cdot C + A \cdot M + M \cdot C + C \cdot A$.

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