Difference of middle
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Four integers a, b, c, d are given. Find the difference between the second and the third biggest element.
Input
Four integers a, b, c, d. All numbers do not exceed 30000 by absolute value.
Output
Print one number - the difference between the second and the third biggest element.
Examples
Input #1
Answer #1
Submissions 3K
Acceptance rate 58%