e-olymp
Problems

Median number

Median number

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

Input

Integers a, b, c that do not exceed 1000 by absolute value.

Output

Print the median among three numbers.

Time limit 1 second
Memory limit 128 MiB
Input example #1
11 3 7
Output example #1
7