#PCBSAU0000009. Tổng và tích ba số (Sum and Product of Three Integers)
Tổng và tích ba số (Sum and Product of Three Integers)
Sum and Product of Three Integers
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given three integers , calculate their sum and product.
Input
One line containing integers .
Output
Print the sum followed by the product on separate lines.
Subtask
- Subtask 1 — 100 points: .
Example
Input
2 -3 4
Output
3
-24
Explanation
For , the sum is and the product is . Print 3 and -24 on consecutive lines.