Median Difference#821

Median Difference

1 second
128 megabytes
Very easy (≈850)

Integers , , , and are given. Find the difference between the second and third largest among these numbers.

Input

Four integers , , , and are given. The absolute value of each integer does not exceed .

Output

Output a single integer - the difference between the second and third largest numbers.

Examples

Example 1

Loading
Loading