Sum 5#9974

Sum 5

1 second
64 megabytes
Very easy

Calculate the sum of the first terms in the sequence: 1 + 3 + 9 + 27 + 81 + \ldots

Input

A natural number , where 1 \leq n \leq 39.

Output

A single number representing the sum of the first terms of the sequence.

Examples

Example 1

Loading
Loading