Problem H
Highway Combinatorics

However, this is not your concern. You are more interested in parking some of your own cars on the road segment while it is empty. More specifically, you want to park some of your cars in such a way that the number of different ways to fill the remaining empty space with cars is congruent to your lucky number $n$ modulo $10^9+7$.

Each car has a size of $1\times 2$ metres, each of the two lanes is $1$ metre wide and $200$ metres long. You own more than $200$ cars which you could park on the road segment.
Input
The input consists of:
-
One line with one integer $n$ ($0\leq n<10^9+7$), the desired number of possible ways to fill the road modulo $10^9+7$.
It can be proven that at least one valid solution exists for each possible value of $n$.
Output
Output the state of the two lanes in two lines. Print “#” for an occupied spot and “.” for an empty spot. Note that the two lines should have the same length of at least $1$ metre and at most $200$ metres, and the occupied spots must correspond to some parked cars. If your solution uses a road segment shorter than $200$ metres, the remaining part of the road segment is assumed to be blocked by parked cars.
Sample Input 1 | Sample Output 1 |
---|---|
10 |
##..#....... ....#.##.... |
Sample Input 2 | Sample Output 2 |
---|---|
27 |
...##........ ........##... |