#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 a,b,ca,b,c, compute a+b×ca+b\times c and (a+b)×c(a+b)\times c to observe how parentheses affect the result.

Input

One line containing integers a,b,ca,b,c.

Output

Print a+b×ca+b\times c on line one and (a+b)×c(a+b)\times c on line two.

Subtask

  • Subtask 1 — 100 points: −106≤a,b,c≤106-10^6\le a,b,c\le10^6.

Example

Input

2 3 4

Output

14
20

Explanation

With a=2,b=3,c=4a=2,b=3,c=4, multiplication is evaluated first: 2+3×4=142+3\times4=14. Parentheses change the order: (2+3)×4=5×4=20(2+3)\times4=5\times4=20. These two values appear on separate lines.