Find all positive integers n for which n^2 - 19n + 59 + n^2 + 4n - 31 is a perfect square.
The answers are 4 and 11.