Solve this math problem

Solve 373*d - 964 - 584 = -56 for d.
4