Task4-Input-Output.5 Code optimization