An input voltage vin=(10V)sinωt is applied across a resistor R=1kΩ in series with a branch. The branch is an ideal diode in series with an ideal 4V cell. The diode's anode joins the resistor, its cathode joins the cell's positive terminal, and the cell's negative terminal is earthed. The output vout is taken across this branch, with no load connected. What are the maximum and minimum values of vout?