#K8801. Maximum Taste Difference
Maximum Taste Difference
Maximum Taste Difference
Fumiko is preparing a special dish using a variety of ingredients. Each ingredient has a flavor value and the taste of the dish is determined by the difference between the best and the worst flavor.
The maximum taste is defined as \( |\text{max} - \text{min}| \), where \( \text{max} \) is the maximum flavor value and \( \text{min} \) is the minimum flavor value among all the ingredients.
Your task is to compute this value given a list of ingredients. Read the input from stdin and write the result to stdout.
inputFormat
The input consists of two lines:
- The first line contains an integer \(N\) representing the number of ingredients.
- The second line contains \(N\) space-separated integers representing the flavor values of the ingredients.
outputFormat
Output a single integer representing the maximum possible taste, which is computed as \( |\text{max} - \text{min}| \).
## sample5
1 6 3 10 15
14
</p>