Two digits#400

Two digits

1 second
128 megabytes
Easy (≈1000)

How many -digit numbers can be created using only digits and , where no three identical digits stand side by side?

Input

One number n~(n \le 30).

Output

The amount of -digit numbers.

Examples

Example 1

Loading
Loading