Bad Substring
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Find the number of strings of length consisting of only the characters '', '' and '', not containing the substring .
Input
One integer .
Output
Print the number of required strings.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 4K
Acceptance rate 48%