Hyper Illuminati#11632

Hyper Illuminati

1 second
128 megabytes
Medium

Once again, the time has come to demonstrate the overwhelming power of the Illuminati. To do so, it was decided to build an -dimensional hyper-step pyramid using -dimensional blocks:

To further demonstrate their might, the Illuminati leaders have decided to add two more requirements:

A -dimensional hyper pyramid with steps consisting of blocks in total.

Input

One integer (1 \le m \le 10^{16}). This integer is the meaningful number chosen by the leaders.

Output

If a hyper-step pyramid matching all the requirements exists, output a single line with two integers and : the dimension of the pyramid and its number of steps. If none exists, output impossible. If multiple solutions exist, any one will be accepted.

Examples

Example 2

Loading
Loading

Example 1

Loading
Loading

Example 3

Loading
Loading

Example 4

Loading
Loading