Submit | All submissions | Best solutions | Back to list |
EIUPH003 - Median of three numbers |
Cho ba số a, b, c. Tìm giá trị ở giữa (trung vị - median) trong ba số đó.
Given three integers a, b, c. Find the median of these three numbers.
Input
A only line contains three integers a, b, c separeted by a space (|a|, |b|, |c| <=10^9).
Output
The median of three given integers.
Example
Input: 10 5 6 Output: 6