SP11947 GSWORDS - Counting Words

Description

_Supervin likes counting. In this problem, he invites you to count together_ Supervin defines a **word** as "a string only consist of 'o' or 'x'", and additional requirement, for each substring with prime-length, the number of 'o' is not less than the number of 'x'. Supervin gives you an integer **N** (1

Input Format

One line, an integer **N**

Output Format

One line, an integer indicates how many **N**-length **words** modulo 1 000 000 007