Statement
Statement language
There are frogs on a number line. Frog is initially at integer coordinate .
You may perform the following operation any number of times, possibly zero.
- Choose two frogs (). If coordinate is , frog jumps there.
The frogs want to gather as close to the origin as possible. After all operations, find the minimum possible value of .
Input
The input is given in the following format:
Output
Output the answer.
Constraints
- .
- ().
Subtasks
Samples
Sample 1
Input
3
10 -1 2
Output
2
Sample 2
Input
5
-7 9 4 5 -3
Output
5