409991: GYM103895 A Love Your Llama

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

A. Love Your Llamatime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

Larry the Llama loves eating grass. Since raising Larry, you have noticed that Larry's Vitamin L levels seem to have some correlation with the amount of grass that he eats. Over the years, you've come to realize that in a period of 7 days, Larry's Vitamin L level after those 7 days will be the difference between the maximum number of pounds of grass eaten in that week subtracted by the minimum number of pounds of grass eaten in that week. Determine what you would expect Larry's Vitamin L level to be at after 7 days of eating grass.

Input

The first and only line of input will contain 7 integers, representing the amount of grass eaten in each day of the week. In one day, Larry can eat $$$x$$$ pounds of grass, where ($$$1 \leq x \leq 100$$$).

Output

Print a single number - the Vitamin L level that Larry should have after 7 days of eating grass.

ExamplesInput
1 2 3 4 5 6 7
Output
6
Input
1 1 1 1 1 1 1
Output
0

加入题单

算法标签: