Task
just got a job working at the airport. His job is to pack the luggage into the airplane. The luggage compartment of the airplane is a rectangle with height and width . The luggages are rectangles.
The packing procedure is as follows:
sits at the top of the luggage compartment and throws luggages into it one by one.
For each luggage he can choose one of ways to orient the luggage.
After being oriented, the luggage will fall towards the bottom of the luggage compartment until it hits either the bottom or another luggage. Note that once thrown, a luggage will always keep it's orientation.
continues to throw luggages until there isn't any way to fit anymore luggages no matter how he orients them.
We define a possible configuration as any configuration of luggages that can be reached following this procedure.
wants to know what is the sum of the number of luggages used over all the posible configurations.
Formally, let be the number of luggages used in cofiguration .
We want to know .
Because this number can be very large, we want this number modulo .
Input data
The first line will one number , the height of the luggage compartment.
Output data
Print only one number, the requested sum modulo .
Constraints and clarifications
Example 1
stdin
2
stdout
2
Explanation
There is only one possible configuration. And this configuration uses 2 luggages.
Example 2
stdin
50
stdout
191158905