Write down the solution for this math problem: Solve 3216 = 171*w + 817 - 3415 for w.
34