Diagram Input and output power flow of UPS.