LearnPy Hub
← Arena
EasyRating 800

Spread

Print the difference between the largest and smallest numbers.

Input

n, then n integers.

Output

A number.

Sample 1

Input
5
3 9 1 4 7
Output
8

Sample 2

Input
1
42
Output
0
solution.py
Output appears here
Spread · Python Arena problem · LearnPy Hub