Let $S_n = n^2 + 20n + 12$, where $n$ is a positive integer. Determine the sum of all possible values of $n$ for which $S_n$ is a perfect square.

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