Three-way valves for the boiler