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

#985. 4-bonacci

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

Examples

Input
29
Output
24438049
Input
58
Output
4500996712036561

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