Forbidden Strings
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
A string of letters , is forbidden if there are three consecutive letters from which one is , one is and one is . For example, is forbidden, while is not.
How many such strings of length are not forbidden?
Input
Each line contains one number .
Output
For each input value of print in a separate line the number of strings of length are not forbidden.
Examples
Input #1
Answer #1
Submissions 2K
Acceptance rate 44%