Steam generator four-way boiler