#P1932. A+B A-B A*B A/B A%B Problem

A+B A-B A*B A/B A%B Problem

Description

Compute the sum, difference, product, quotient, and remainder of AA and BB.

Due to updates to the testdata, the subtraction result may be negative.

Input Format

Two lines, each containing one number: the two numbers to be operated on.

Output Format

Five lines, each containing one number: the sum, difference, product, quotient, and remainder of AA and BB.

1
1
2
0
1
1
0

Hint

A,B104|A|,|B| \leq 10^4 denotes the number of digits rather than the absolute value.

A,B>0 A,B > 0 .

Translated by ChatGPT 5