#PCBSAU0000002. Thứ tự ưu tiên của biểu thức (Operator Precedence)
Thứ tự ưu tiên của biểu thức (Operator Precedence)
Operator Precedence
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given integers , compute and to observe how parentheses affect the result.
Input
One line containing integers .
Output
Print on line one and on line two.
Subtask
- Subtask 1 — 100 points: .
Example
Input
2 3 4
Output
14
20
Explanation
With , multiplication is evaluated first: . Parentheses change the order: . These two values appear on separate lines.