CodeLab Academy 📞 9936 6696
← List Python · Level 4: For loops Code · 40 points ← #317 #319 →

#318. Geometric progression: ratio 2

You get n. Start at 1 and multiply by 2 each time. Print the first n terms of this progression on one line. ### Input One integer n (1 ≤ n ≤ 20). ### Output One line.

Examples

Input
8
Output
1 2 4 8 16 32 64 128
Input
14
Output
1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192

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