# Find the sum

Very easy

Execution time limit is 1 second

Runtime memory usage limit is 128 megabytes

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

## Input

Three-digit positive integer n.

## Output

Print the required sum.

## Examples

Input #1

Answer #1

Submissions 5K

Acceptance rate 51%