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

#325. Sum of numbers divisible by 3

You get a positive integer n. Find the sum of all numbers from 1 to n that can be divided by 3. ### Input One integer n (1 ≤ n ≤ 10000). ### Output The sum.

Examples

Input
2640
Output
1162920
Input
6322
Output
6662334

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