CodeLab Academy 📞 9936 6696
← List Python · Level 7: Lists Code · 70 points ← #604 #606 →

#605. List: range (largest - smallest)

You are given a list of integers. Find its **range (largest - smallest)**. ### Input The first line has n, the second line has n integers separated by spaces. ### Output The answer.

Examples

Input
8
-7 -67 21 -44 83 -15 -19 18
Output
150
Input
7
68 28 -99 28 74 -24 48
Output
173

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!