Time

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

Median number

   Three different numbers a, b, c are given. Output the median number.


Specifications

   Input

   Numbers a, b, c are integer and do not exceed 1000 by absolute value.

   Output

   Single number - the answer to the problem.


Problem information

Time Limit: 1 seconds
Memory Limit: 64 MB
Balls for the passed test: 9.09091
Complexity: 12% 1362/1554
Classes: If... then...

Example

Example input

11 3 7

Example output

7


← Compact discs Problems Page numbering →