Tri Tiling#482

Tri Tiling

1 second
128 megabytes
Medium

In how many ways can you tile a 3 \times n rectangle with 2 \times 1 dominoes? Below is a sample tiling of a 3 \times 12 rectangle.

Input

The input consists of several test cases, ending with a line containing . Each line contains a single integer (0 \leq n \leq 30).

Output

For each test case, output the number of possible tilings on a separate line.

Examples

Example 1

Loading
Loading