What is the solution?

Solve -4376 + 607 = -262*z + 8545 for z.
47