#P1932. Arithmetic Operations
Arithmetic Operations
Arithmetic Operations
Given two integers \(A\) and \(B\), compute their sum \(A+B\), difference \(A-B\), product \(A\times B\), quotient \(A\div B\) and remainder \(A\bmod B\). Note: The subtraction result may be negative.
inputFormat
The input consists of a single line containing two space-separated integers \(A\) and \(B\). It is guaranteed that \(B\) is nonzero.
outputFormat
Output the sum, difference, product, quotient, and remainder in one line separated by spaces.
sample
10 3
13 7 30 3 1