Median number#108

Median number

1 second
128 megabytes
Very easy

Three integers , , are given, each of which satisfies |a|, |b|, |c| \leq 1000.

Input

Three integers , , are given, each of which satisfies |a|, |b|, |c| \leq 1000.

Output

Print the median among the three numbers.

Examples

Example 8

Loading
Loading