Windy weather#5713

Windy weather

1 second
128 megabytes
Very easy

Piglet was lying on the lawn, watching the swaying blades of grass. He noticed that the grass was swaying because of the wind and immediately came up with a way to measure the wind's strength using them. According to Piglet's definition, the wind's strength is the difference between the height of the tallest blade of grass and the shortest one.

Input

The first line contains a single integer — the number of blades of grass observed by Piglet. The second line contains integers — the heights of the blades of grass.

All input numbers are positive integers not exceeding . This is because Piglet didn't like counting large numbers and couldn't do it, as he had never encountered numbers greater than before.

Output

Print one number — the wind's strength as defined by Piglet.

Examples

Example 1

Loading
Loading