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

Week 4: November 30 – December 6. While Loop. Part 1

Product of nonzero digits

Find the product of nonzero digits for given integer.

Input

One positive integer n (n109).

Output

Print the product of nonzero digits for number n.

Time limit 1 second
Memory limit 128 MiB
Input example #1
1203405
Output example #1
120