Problems
Spiral
Spiral
The plane is divided into equal squares, which are filled with numbers from \textbf{0} to infinity in the form of a spiral in a clockwise direction:
\includegraphics{https://static.e-olymp.com/content/9a/9a859b8a6b651bbd7d61d602ae443905249fec58.jpg}
Given a positive integer \textbf{N}. Required to find two neighbors on the side or corner of the cell, the number of which sum to \textbf{N}.
\InputFile
The first line contains one integer \textbf{N} (\textbf{1} <= \textbf{N} <= \textbf{1000}).
\OutputFile
Bring two numbers through the gap is minimal neighbors in ascending order, and giving a total \textbf{N}.
Input example #1
1
Output example #1
0 1