EasyRating 900
Cube Pyramid
A pyramid's top level has 1 cube, the next 1 + 2, the next 1 + 2 + 3, and so on. With n cubes, how tall can the pyramid be?
Input
One integer n (1 ≤ n ≤ 10⁹).
Output
The number of levels.
Sample 1
Input
1
Output
1
Sample 2
Input
25
Output
4
Output appears here