Inverted Tower#8373

Inverted Tower

1 second
128 megabytes
Very easy

The Babylonians decided to build an amazing tower - expanding to the top and containing an infinite number of floors and rooms. It is arranged as follows - on the first floor there is one room, then there are two floors each with two rooms, then there are three floors, each with three rooms and so on.

prb8373.gif

This tower was decided to equip with an elevator - and here is the problem: given room number you need to determine the floor and position of the room on that floor from the left.

Input

Room number (1 \leq n \leq 2 \cdot 10^9).

Output

Print two space separated integers: the floor and the position of the room on that floor from the left.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading