Gardener-painter#399

Gardener-painter

1 second
64 megabytes
Very easy (≈850)
prb17

Gardener has to paint trees after planting. He has paint of three colour: white, blue and orange.

How many ways he can paint of trees, if not any two the same colours can be side by side?

Input

The quantity of trees is (1 ≤ N ≤ 50).

Output

The quantity of ways of paint.

Examples

Example 1

Loading
Loading