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

#861. Function composition (p=5, q=3)

Define the functions f(x) = x + 5 and g(x) = 3·x. You get x. Print f(g(x)) and g(f(x)) on separate lines. ### Input One integer x. ### Output Two lines.

Examples

Input
-98
Output
-289
-279
Input
14
Output
47
57

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