CodeLab Academy 📞 9936 6696
← List Python · Level 10: Algorithms Code · 100 points ← #913 #915 →

#914. Evaluate an expression (+, -)

You get an expression like `12+3-4` with no spaces. Find its value (without eval). ### Input One line. ### Output A number.

Examples

Input
59+5-63-86+60-90
Output
-115
Input
48-75-16-90-41+64-48
Output
-158

💡 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!