Write down the solution for this math problem: Solve 186*w + 577 - 1022 = 2159 for w.
14