#34Easy
Middle of three
Time: 1 s · Memory: 256 MB
- Conditionals
Statement
You are given three integers. Find the one that is in the middle when they are written in increasing order. For example, for the answer is , and for it is .
Input format
A single line with three integers , , ().
Output format
A single integer — the middle one.
Examples
Input
4 2 6
Output
4
Input
5 5 1
Output
5
Note
Numbers may be equal — use <= rather than < in the conditions, otherwise a case like matches none of them.
