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

Background

This problem is quite novel!!!

Description

Compute the sum, difference, product, quotient, and remainder of $A$ and $B$. **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 $A$ and $B$.

Explanation/Hint

$|A|,|B| \leq 10^4$ denotes the number of digits rather than the absolute value. $ A,B > 0 $. Translated by ChatGPT 5