Decomposition into a sum of cubes
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
One positive integer is given. Represent it as the sum of the minimum number of positive cubes. Print this minimum number.
Input
One positive integer .
Output
Print one integer - the minimum number of positive cubes whose sum equals .
Examples
Input #1
Answer #1
Submissions 2K
Acceptance rate 38%