eolymp
bolt
Try our new interface for solving problems
Problems

Use the function

Use the function

Time limit 1 second
Memory limit 128 MiB

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 data

Three real numbers х, у and z are given in one line. Their values do not exceed 100 by absolute value.

Output data

Print the answer with two decimal digits.

Examples

Input example #1
1.05 2.25 2.15
Output example #1
2.25
Source SFE-2010 Variant 20