To practice her programming skills, Tessa wrote a program that takes an input number, squares it, adds a constant value, multiplies the result by another constant value, and then outputs the result.
When the input is \(8\), the output is \(204\). When the input is \(3\), the output is \(39\).
What is the output when the input is \(5\)?