#C7682. Cube and Concatenate
Cube and Concatenate
Cube and Concatenate
Given an integer n, perform the following operation:
For each digit d in the absolute value of n, compute its cube, i.e., \(d^3\). Then, concatenate all these cubed values (in the order of appearance in n) to form a new integer.
For example, if n = 456, we have:
- \(4^3 = 64\)
- \(5^3 = 125\)
- \(6^3 = 216\)
The concatenated result is 64125216.
If the input is negative, consider its absolute value before processing.
inputFormat
The input consists of a single integer n provided via standard input (stdin).
outputFormat
Output the resulting integer after cubing and concatenating each digit of the absolute value of n to standard output (stdout).
## sample456
64125216
</p>