e-olymp
Competitions

Formatting

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