Use the function
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Three real numbers х, y and z are given. Find min(max(x,y), max(y,z), x+y+z) using the auxiliary functions for calculation the minimum and the maximum of two elements.
Input
Three real numbers х, у and z are given in one line. Their values do not exceed 100 by absolute value.
Output
Print the answer with two decimal digits.
Examples
Input #1
Answer #1
Submissions 19K
Acceptance rate 53%