DEC 18 Chef and An Ideal Problem. How and what needs to be input and output to the screen?

I am confused about the inputs and outputs. Please clarify what should be the input and what should be the output. Also I am getting -1.00000 TLE Error.

//