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

#991. 5-bonacci

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

Examples

Input
27
Output
6403457
Input
31
Output
95653929

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