Find the sum#8860

Find the sum

1 second
128 megabytes
Very easy

For the given three-digit number find the sum of the three-digit numbers formed by all possible permutations of the digits of the number , including the identical one.

Input

Three-digit positive integer .

Output

Print the required sum.

Examples

Example 1

Loading
Loading