Time limit
2s
Memory limit
128 MB
There is a rectangular wall with height 3 and width N. You want to cover the entire wall with domino tiles of size 2×1 or 1×2.
Tiles must not overlap, and no tile may extend outside the wall. Find the number of different ways to tile the wall.
The first line contains an integer N. (1≤N≤30)
Print the number of ways to tile a 3×N wall.
The figure below shows one tiling of a 3×12 wall.
