scara

Let's consider a Cartesian coordinate system and the non-zero positive integers placed in the form of a scale, like in the image below:

You can see that numbers 1 2 3 4 are located on the Ox axis (their coordinates being, in order, (0,0), (1,0), (2,0), (3,0)). Numbers 5 6 7 8 are located above, on ordinate 1 and have, in order, abscises 4, 3, 2, 1. Numbers 9, 10, 11, 12 are located on ordinate 2 and have, in order, abscises, 2, 3, 4, 5, etc.

Task

Write a program that determines the abscise and ordinate of the position where a given non-zero positive integer N is written.

Input Data

Input file scara.in contains on the first line the positive integer N.

Output Data

Output file scara.out will contain a single line with two positive integers separated by a space, representing the abscise and ordinate of the plain point where number N is located.

Constraints and Statements

Example
scara.in scara.out

15

4 3

Time limit: 0.1 seconds/test

prof. Emanuela Cerchez
"Grigore Moisil" Iaşi IT High School
Contact:emanuela.cerchez@gmail.com