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

#763. Three dice: sum s

You roll three 6-sided dice. In how many ways can the sum be s? (The order matters.) ### Input One integer s (2 ≤ s ≤ 19). ### Output A number.

Examples

Input
16
Output
6
Input
15
Output
10

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