A cyclic engine exchanges heat with two reservoirs maintained at 100 and 300°C respectively. The maximum work (in J) that can be obtained from 1000 J of heat extracted from the hot reservoir is
(A) 349
(B) 651
(C) 667
(D) 1000
(A) 349
(B) 651
(C) 667
(D) 1000