Problem Description
Write a program that step-by-step calculates the arithmetic expression with three variables a, b, c:
Output requirements:
-
In the first step, calculate and output the value of the first expression in parentheses:
-
In the second step, calculate and output the value of the second expression in parentheses:
Input Format
The input contains three integers separated by spaces: , , . .
Output Format
Output four lines with the results of each step:
- The value of the first expression in parentheses.
- The value of the second expression in parentheses.
- The value of the third expression in parentheses.
- The final value of the entire expression with the substituted computed parts.
Examples
Example 1
Input
3 2 1
Output
-723 36 59 520550