Problems
Sum of cubes
Sum of cubes
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.
Input example #1
1
Output example #1
1
Input example #2
9
Output example #2
12