Inverted Tower#8373

Inverted Tower

1 सेकंड
128 मेगाबाइट
बहुत आसान

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.

इनपुट

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

आउटपुट

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

उदाहरण

उदाहरण 1

Loading
Loading

उदाहरण 2

Loading
Loading