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

#680. Turn each element into x·3+1

Replace every element x with x·3+1 and print the list. ### Input The first line has n, the second line has n integers separated by spaces. ### Output One line.

Examples

Input
10
-7 -3 -4 -18 -6 -6 2 -15 -7 -13
Output
-20 -8 -11 -53 -17 -17 7 -44 -20 -38
Input
8
-4 -17 -1 17 -3 -5 -4 4
Output
-11 -50 -2 52 -8 -14 -11 13

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