Sum of cubes
Medium
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Write a program that finds the minimal positive integer with a given sum of cubes of digits.
Input
One number - the required sum of cubes of digits n (1 ≤ n ≤ 8000).
Output
Print one number - the answer to the problem.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 791
Acceptance rate 15%