CodeLab Academy 📞 9936 6696
← List Python · Level 9: Functions and dicts Code · 90 points ← #894 #896 →

#895. Function f(x) = 2x² + 2x + 2

Write a function `def f(x):` that returns f(x) = 2x² + 2x + 2. Print f(x) for the x given in the input. ### Input One integer x (-100 ≤ x ≤ 100). ### Output A number.

Examples

Input
-1
Output
2
Input
43
Output
3786

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