CodeLab Academy 📞 9936 6696
← List Python · Level 10: Algorithms Code · 100 points ← #995 #997 →

#996. 6-bonacci

The first 6 terms are 1, and each next term is the sum of the previous 6 terms. Find the n-th term. ### Input One integer n (1 ≤ n ≤ 60). ### Output A number.

Examples

Input
31
Output
72426721
Input
19
Output
19521

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