Difference#941

Difference

1 second
128 megabytes
Very easy

Find the difference between the product and the sum of the digits of a three-digit number.

Input

One three-digit number (positive or negative).

Output

The difference between the product and the sum of the digits of the given number.

Examples

Example 1

Loading
Loading