Difference between maximum and minimum#8959

Difference between maximum and minimum

1 segundo
128 megabytes
Muy fácil

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

Entrada

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.

Salida

Print the difference between the maximum and minimum number.

Ejemplos

Ejemplo 1

Loading
Loading