Use the function#920

Use the function

1 second
128 megabytes
Very easy

Three real numbers , , and are given. Using auxiliary functions for calculating the minimum and maximum of two elements, determine \min(\max(x, y), \max(y, z), x + y + z).

Input

The only line contains three real numbers , , and separated by spaces. The values do not exceed in absolute value.

Output

Print the answer rounded to two decimal places.

Examples

Example 1

Loading
Loading