I think you misplaced the M there and wanted a D instead of a B.

(1000 + 1000 + (((10 + 10)-50)-500)

Pretty sure that is not what you wanted.

MDL (1000+500+50) was maybe what you wanted?