10539: ABC118 —— A - B +/- A
[Creator : ]
Description
You are given positive integers $A$ and $B$.
If $A$ is a divisor of $B$, print $A + B$; otherwise, print $B - A$.
If $A$ is a divisor of $B$, print $A + B$; otherwise, print $B - A$.
Input
Input is given from Standard Input in the following format:
```
$A$ $B$
```
```
$A$ $B$
```
Output
If $A$ is a divisor of $B$, print $A + B$; otherwise, print $B - A$.
Constraints
- All values in input are integers.
- $1 \leq A \leq B \leq 20$
- $1 \leq A \leq B \leq 20$
Sample 1 Input
4 12
Sample 1 Output
16
As 4 is a divisor of 12, 4+12=16 should be printed.
Sample 2 Input
8 20
Sample 2 Output
12
Sample 3 Input
1 1
Sample 3 Output
2
1 is a divisor of 1.