Category

Similar Problems

0728. The ratio of product to the sum

Time limit : 1000 ms
Memory limit : 64 mb

   Find the ratio of the product of digits of natural number to their sum.

Input

   One positive integer n, not greater than 2·109.   

Output               

    The desired ratio, calculated with 3 decimal digits.

Samples

Input

Output

1

36

2.000

 

Tayyorladi: Azat Yusupov
Text from: e-olimp.com