CodeLab Academy 📞 9936 6696
← List Python · Level 8: Nested loops Code · 80 points ← #768 #770 →

#769. Count the positive solutions of a + b + c = n

Use nested loops to count the **positive solutions of a + b + c = n**. ### Input One integer (1 ≤ value ≤ 100). ### Output A number.

Examples

Input
33
Output
496
Input
30
Output
406

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