Vasya and balls#4538

Vasya and balls

1 second
128 megabytes
Very easy

Recently, Vasya discovered that it is possible to play a very interesting game with balls. In this game, balls are arranged in the form of various geometric figures and solids. Currently, Vasya is arranging balls in the shape of an equilateral triangle. However, there is a problem: sometimes he does not have enough balls, and then he wants to know what is the maximum possible side length of such a triangle given the number of balls he has.

Help Vasya: write a program that computes — the side length of the equilateral triangle for a given number of balls .

Below is an example of arranging balls in the shape of an equilateral triangle:

Input

One non-negative integer k~(0 \le k \le 2 \cdot 10^8) — the number of balls available.

Output

Print the number — the answer to the problem.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading