CF2068B Urban Planning

Description

You are responsible for planning a new city! The city will be represented by a rectangular grid, where each cell is either a park or a built-up area. The residents will naturally want to go for walks in the city parks. In particular, a rectangular walk is a rectangle consisting of the grid cells, which is at least 2 cells long both horizontally and vertically, such that all cells on the boundary of the rectangle are parks. Note that the cells inside the rectangle can be arbitrary. ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF2068B/650c150729643ceb8f9e562a8913c8a60e9dc725.png) An example rectangular walk (cells with dark background). Your favourite number is $ k $ . To leave a long-lasting signature, you want to design the city in such a way that it has exactly $ k $ rectangular walks.

Input Format

The input contains a single integer $ k $ ( $ 0 \le k \le 4.194\cdot 10^{12} $ ).

Output Format

On the first line, print two integers $ h $ and $ w $ ( $ 1 \le h, w \le 2025 $ ), the height and width of the grid. On the next $ h $ lines, print a string with $ w $ characters each, with each character being \#, denoting a park, or ., denoting a built-up area. It is guaranteed that for any value of $ k $ within the given limits, there exists a solution with height and width within the given limits. Any city within the given limits and with exactly $ k $ rectangular walks will be accepted.

Explanation/Hint

In the sample, here are the five possible rectangular walks: ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF2068B/b694d5d43c1db4ce1affb71fd91eaaed1c603a15.png)![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF2068B/c0a42475b8538edc0aa9b0c24e8955d114133a0f.png)![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF2068B/3749b31d2137b1ef71c23fc5617c6194a72b29cb.png)![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF2068B/63f27f79f27b688ddc9ce6f1ac0e857ca91dc99e.png)![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF2068B/e7cc09f62ba9dcdd869e9d3cff8988b91b93cc46.png)