#P195. 练32.1 立方和不等式

练32.1 立方和不等式

Description

Find the maximum integer mm that satisfies the following cubic sum inequality: 13+23++m3n1^3+2^3+⋯+m^3 \leq n.

Input Format

Input the value of nn (1n1051≤n≤10^5).

Output Format

Output the maximum value of mm.

Sample

50
3