# Sum of digits

Let $$S(n)$$ be the sum of digits of a positive integer $$n$$ (when written in base 10).

If $$S(n) = 4$$, find the maximum value of $$S\big(n^4\big)$$.

×