Difference between maximum and minimum#8959

Difference between maximum and minimum

1 second
128 megabytes
Very easy

Given integers. Print the difference between the maximum and minimum number.

Input

The first line contains number n~(1 \le n \le 100). The second line contains integers, each one is no more than by absolute value.

Output

Print the difference between the maximum and minimum number.

Examples

Example 1

Loading
Loading