At a school, each student's attendance record is checked at the end of the term to decide whether the student can receive a perfect attendance award. Each day in the record is marked as one of present O, late L, or absent A.
A student cannot receive the award in either of the following cases.
- The record contains at least two late days.
- The record contains three consecutive absent days.
When N is 4 days, the 43 records that can receive the award are as follows.
Given the number of days N in a term, compute how many attendance records can receive the award.