Time

11:58:10
11 Feb 2012
ACM-ICPC Thailand Southern Region Programming Contest 2011
Left: 3 hours 2 minutes
End: 11.02.2012 15:00
Leader: Informatimukas
Five for week 22
Left: 10 hours 2 minutes
End: 11.02.2012 22:00
Leader: NuM
Version for print

Use function

   3 real numbers õ, y and z are set. Define min(max(x,y), max(y,z), x+y+z), having taken advantage of auxiliary functions for calculation of the minimum and maximum elements from two set.


Specifications

   Input

   In a unique line set 3 real numbers õ, ó and z, parted by a blank. Value of numbers do not exceed on the module 100.

   Output

   The singular is the answer to a problem, 2 signs deduced with accuracy after a decimal point.


Problem information

Time Limit: 0.5 seconds
Memory Limit: 64 MB
Balls for the passed test: 4
Complexity: 10% 625/693
Source: SFE-2010 Variant 20
Classes: Beginners

Example

Example input

1.05 2.25 2.15

Example output

2.25


← Number 3 Problems Negative elements →