~/algor $ cat problems/oddiy-kalkulyator
Simple calculator
Easy
1000 ms
64 MB
20%
An operation number $N$ and two integers $A$ and $B$ are given. Operations: $1$ — addition ($A + B$), $2$ — subtraction ($A - B$), $3$ — multiplication ($A * B$), $4$ — division. Division takes the integer part and drops the fraction (for example, $7$ divided by $2$ is $3$). Find the result of the operation.
Input
One line with three integers: $N$, $A$ and $B$.
Output
One integer — the result of the operation.
Note
$1 \le N \le 4$
$-10^{4} \le A, B \le 10^{4}$
When $N = 4$, $B \ne 0$
Examples
Input #1
1 10 5
Output #1
15
Input #2
2 10 5
Output #2
5