Which one is more effective produce power of this two turbine's location?
The power will be the same. But the aircraft with wing mounted engines will have less drag. Contributing factors are:


Engines are heavy. Putting them aft means there is a big difference in centre of gravity between empty and loaded aircraft, so larger horizontal stabilizer is needed to keep it in trim over the range of centres of gravity. It is also needed for rotation on take-off with forward CoG, since the main gear must be behind the aft-most CoG position. That means more trim drag.
Putting something heavy, like engines, on the wing ahead of it reduces flutter, so the wing can be less stiff, and thus lighter. This means more payload, or less induced drag at the same payload.
Engines ahead of the wing fit nicely with the Whitcomb area rule. At the tail they add a lot of cross-section where it should be tapering off already, slightly worsening the transsonic performance.


So engines tend to be wing-mounted on all but small low-wing aircraft where they would have too little ground clearance.