Bad Substring#1343

Bad Substring

1 second
128 megabytes
Medium

Find the number of strings of length consisting only of the characters , , and , that do not contain the substring .

Input

One integer (0 \leq n \leq 45).

Output

Print the number of such strings.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading