ICPC-strings#11308

ICPC-strings

1 second
128 megabytes
Very easy

Define an ICPC-string as a string composed of the letters I, C, P, C such that every consecutive characters contain exactly two letters , one letter , and one letter .

For a given , find the number of distinct ICPC-strings of length .

Input

Contains one integer n~(4 \le n \le 1000) — the length of the string.

Output

Print one integer — the number of ICPC-strings of length .

Examples

Example 1

Loading
Loading