Time

15:58:13
22 May 2012
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 →