If 2500 cal. of heat is added to a system while the system does work equivalent to 3500 cal by expanding against the surrounding atmosphere, the value of ΔU for the system is
A. 4000 cal
B. −4000cal
C. 1000 cal
D. −1000cal