Problem list
Log in
#r03314 · Online Judge > GoldOJ

Arithmetic Operations

Bronze V 2.0 s 256 MB

Given two natural numbers $A$ and $B$, print $A+B$, $A-B$, $A\times B$, $A/B$ (integer quotient), and $A\bmod B$, each on its own line.

Input

Two integers $A$ and $B$ ($1 \le A, B \le 10000$).

Output

Print the five results, one per line.

Example 1

Input
8 3
Output
11
5
24
2
2

Example 2

Input
10 5
Output
15
5
50
2
0
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 1 Submissions 2 Acceptance 100% Solvers 1

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code