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

#324. Multiples of 3

You get a positive integer n. Print all positive numbers not greater than n that can be divided by 3, in increasing order, on one line, separated by spaces. ### Input One integer n (3 ≤ n ≤ 200). ### Output The numbers on one line.

Examples

Input
89
Output
3 6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 51 54 57 60 63 66 69 72 75 78 81 84 87
Input
100
Output
3 6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 51 54 57 60 63 66 69 72 75 78 81 84 87 90 93 96 99

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