e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Problems

Difference

Difference

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 a given number.

Time limit 1 second
Memory limit 128 MiB
Input example #1
198
Output example #1
54