Imagine that there is a board of N (1 ≤ N ≤ 40) length and an unlimited inventory of tiles of length 1, 2, and 3. Write a program that reads the length of the board from the console and prints the number of possible ways you can tile that board with those tiles.
The picture below shows an example of such tiling:
As you can see, there are 7 different ways you can tile a board of length 4 with tiles of length 1, 2 and 3.