Spiral#450

Spiral

1 second
64 megabytes
Easy

The plane is divided into equal squares, which are filled with numbers from to infinity in the form of a spiral in a clockwise direction:

prb450

Given a positive integer . Find two neighboring cells (sharing a side or a corner) such that the sum of their values is .

Input

The first line contains one integer (1 \leq N \leq 1000).

Output

Output two integers, the smallest such neighbors in ascending order, whose sum is , separated by a space.

Examples

Example 1

Loading
Loading