Write a program that counts the ways to fill a 2×n rectangle with 1×2, 2×1, and 2×2 tiles. Tiles must not overlap, must not stick out of the rectangle, and must leave no empty cell.
Two fillings are different if any tile sits in a different place.
Input
The first line contains n. (1≤n≤1000)
Output
Print the number of ways to fill the 2×n rectangle, modulo 10007, on the first line.