#P389. 练67.3 背单词
练67.3 背单词
Description
Little SLM is preparing for an English exam and is memorizing vocabulary words like crazy. SLM decides to memorize words once a day, normally between 6:20-7:00 AM before getting up. He has a special skill: he can start memorizing words at 23:35 on day and continue until 00:25 on day , which counts as memorizing words on both days. However, this skill cannot be used consecutively twice, as it would be too exhausting. For example: using the skill on days 1 and 2, then again on days 3 and 4 is not allowed. But using the skill on days 1 and 2, then normal memorization on day 3, and using the skill again on days 4 and 5 is allowed.
Little SLM wants to memorize words for days and wants to know how many valid ways there are to do this. Note that using the skill between day and day or between day and day is not allowed.
Input Format
A single line containing a positive integer ().
Output Format
A single integer representing the number of valid memorization plans.
Sample
56