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.
Three-digit positive integer n.
Print the required sum.