#C8526. Arithmetic Formatter

    ID: 52518 Type: Default 1000ms 256MiB

Arithmetic Formatter

Arithmetic Formatter

You are given two integers aa and bb. Your task is to compute the following arithmetic operations:

Sum=a+b\text{Sum} = a+b Absolute Difference=ab\text{Absolute Difference} = |a-b| Product=a×b\text{Product} = a \times b

After computing these values, print them in the exact format shown below:

  • The first line should be: Sum: X, where X is the sum of the two numbers.
  • The second line should be: Difference: Y, where Y is the absolute difference of the two numbers.
  • The third line should be: Product: Z, where Z is the product of the two numbers.

The input will be provided via standard input, and you must write your output to standard output.

inputFormat

The input consists of a single line containing two space-separated integers, aa and bb.

outputFormat

Print three lines. The first line prints the sum in the format 'Sum: X'. The second line prints the absolute difference in the format 'Difference: Y'. The third line prints the product in the format 'Product: Z'.## sample

5 3
Sum: 8

Difference: 2 Product: 15

</p>