The New Year is coming soon! To celebrate, Matvey decided to buy himself a Christmas tree. He went to a store where graph-trees are sold. However, when he arrived, he couldn't decide because there was a huge selection. Then he decided to count how many Christmas trees of height $$$n$$$ exist.
Matvey considers a tree with a root at vertex 1 to be a Christmas tree of height $$$n$$$ if it satisfies the following conditions:
Matvey considers Christmas trees to be different if there are numbers $$$i$$$, $$$j$$$, such that one tree has an edge between vertices $$$i$$$ and $$$j$$$, and the other tree does not have such an edge.

For height $$$3$$$, there are two different Christmas trees, which are shown in the figure.
You need to calculate the number of different Christmas trees of height $$$n$$$.
The first line contains one number $$$n$$$ — the depth of the Christmas tree ($$$1 \le n \le 5000$$$).
In a single line, output one number — the number of Christmas trees of depth $$$n$$$.
Since the answer can be very large, output it modulo $$$10^9 + 7$$$.
3
2
4
12
| Name |
|---|


