lines 25 to 32 second input