Solve this math problem

Solve 40016 = -4294*q - 118862 for q.
-37