Two digits#115

Two digits

1 second
128 megabytes
Very easy

How many -digit numbers can be formed using only the digits and , such that no three identical digits appear consecutively?

Input

One integer n~(n \le 30).

Output

Print the number of such -digit numbers.

Examples

Example 1

Loading
Loading