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

Sum and product 3

Sum and product 3

Given three-digit positive integer. Find the sum and the product of its digits.

Input

One three-digit positive integer n (100n999).

Output

Print in one line the sum and the product of its digits.

Time limit 1 second
Memory limit 128 MiB
Input example #1
234
Output example #1
9 24
Source Ramin Textbook Z1.6