Problem:
 Score : 100 points    Problem Statement You are given positive integers A and B .  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         Input Input is given from Standard Input in the following format:  A  B       Output If A is a divisor of B , print A + B ; otherwise, print B - A .        Sample Input 1 4 12      Sample Output 1 16  As 4 is a divisor of 12 , 4 + 12 = 16 should be printed.       Sample Input 2 8 20      Sample Output 2 12       Sample Input 3 1 1      Sample Output 3 2  1 is a divisor of 1 .

Solution (Python):
a, b = map(int, input().split())
if b%a:
    print(b-a)
else:
    print(a+b)

Solution (Python):
a, b = map(int,input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a, b = map(int, input().split())

print(a+b) if b % a == 0 else print(b-a)

Solution (Python):
A,B=map(int,input().split())

if (B%A==0):
    print(A+B)
else:
    print(B-A)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
import sys

INPUT = lambda: sys.stdin.readline().rstrip()
MAP = lambda: map(int, INPUT().split())

sys.setrecursionlimit(10 ** 9)


def main():
    A, B = MAP()
    print(A + B if B % A == 0 else B - A)


if __name__ == '__main__':
    main()

Solution (Python):
a, b = map(int, input().split())

if b%a == 0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
a, b = map(int, input().split())
if b % a == 0:
    print(a + b)
else:
    print(b - a)

Solution (Python):
a, b = map(int, input().split())
print(a + b if b % a == 0 else b - a)

Solution (Python):
a, b = map(int, input().split())
if b%a == 0:
	print (a+b)
else:
	print (b-a)

Solution (Python):
A, B = map(int, raw_input().split())
if B%A == 0:
    print A+B
if B%A != 0:
    print B-A

Solution (Python):
A,B = map(int,input().split())
print(A+B if B%A == 0 else B-A)

Solution (Python):
import sys
import math
import itertools

a,b=list(map(int,input().split()))
for i in range(1,b+1,1):
	if b%a==0:
		print(a+b)
		sys.exit()
print(b-a)

Solution (Python):
a,b=map(int,input().split())

if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
A,B=map(int,input().split())
if B%A==0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
a, b = map(int,input().split())
print(a+b if b%a==0 else b-a)

Solution (Python):
a,b= map(int, input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a, b = map(int, input().split())
print(a + b) if b % a == 0 else print(b - a)

Solution (Python):
A, B = map(int, input().split())

if B % A == 0:
    print(A + B)
else:
    print(B - A)

Solution (Python):
a,b = map(int,input().split())

if b%a != 0:
    print(b-a)
else:
    print(b+a)

Solution (Python):
A, B = [int(n) for n in input().split()]
print(A+B if B%A==0 else B-A)

Solution (Python):
A,B = map(int, input().split())

if B%A == 0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
a,b=map(int,input().split())
print(a+b if b%a==0 else b-a)

Solution (Python):
def main():
    A, B = map(int, input().split(" "))
    if B % A == 0:
        print(A + B)
    else:
        print(B - A)


if __name__ == '__main__':
    main()

Solution (Python):
A, B = map(int, input().split())
if B%A == 0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
A,B = map(int, input().split())

if B%A == 0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
A, B = map(int, input().split())

if B % A == 0:
    print(A + B)
else:
    print(B - A)

Solution (Python):
A, B = map(int, input().split())

if B % A == 0:
    print(A + B)
else:
    print(B - A)

Solution (Python):
a,b=map(int,input().split())
if b%a == 0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
a, b = (int(i) for i in input().split())
print(a+b) if b%a == 0 else print(b-a)

Solution (Python):
a,b = map(int,input().split())
print(a+b if b%a==0 else b-a)

Solution (Python):
"""
author : halo2halo
date : 15, Jan, 2020
"""

import sys
import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

A, B = map(int, readline().split())
print(A + B if B % A == 0 else B - A)

Solution (Python):
A, B = [int(i) for i in input().split()]
if B % A == 0:
  ans = A + B
else:
  ans = B - A
print(ans)

Solution (Python):
a, b = map(int, input().split())
print(a+b if b%a == 0 else b-a)

Solution (Python):
def main():
    A, B = list(map(int, input().split()))
 
    if B % A == 0:
        print(A + B)
    else:
        print(B - A)
 
main()

Solution (Python):
A, B = [int(i) for i in input().split()]

if B % A == 0:
    print(A + B)
else :
    print(B - A)

Solution (Python):
a,b = map(int, input().split())
if b%a == 0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
def main():
    from sys import stdin
    r = stdin.readline()[:-1]
    

    a, b = map(int, r.split())
    if b%a == 0:
        print(a+b)
    else:
        print(b-a)
    
if __name__ == '__main__':
    main()

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a, b = map(int, input().split())
if b % a == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
num = [int(e) for e in input().split()]
A=num[0]
B=num[1]
if B%A==0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
A, B = map(int, input().split())
if B % A == 0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
import sys

a, b = map(int, sys.stdin.readline().split())

def main():
    return a + b if not b % a else b - a

if __name__ == '__main__':
    ans = main()
    print(ans)

Solution (Python):
A, B = map(int,input().split())
if B % A == 0:
  r = A + B
else:
  r = B - A
print(r)

Solution (Python):
a, b = map(int, input().split())
print(a+b if b%a==0 else b-a)

Solution (Python):
a,b = map(int, input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a, b = map(int, input().split())
if(b%a==0):
    print(a+b)
else:
    print(b-a)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):



a,b = map(int,input().split())

if b % a == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
def examA():
    A, B = LI()
    if B%A==0:
        ans = A+B
    else:
        ans = B-A
    print(ans)
    return

import sys,copy,bisect,itertools,heapq,math
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LSI(): return list(map(str,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def SI(): return sys.stdin.readline().strip()
global mod,mod2,inf,alphabet
mod = 10**9 + 7
mod2 = 998244353
inf = 10**18
alphabet = [chr(ord('a') + i) for i in range(26)]

if __name__ == '__main__':
    examA()

Solution (Python):
a,b = map(int,input().split())

if b % a == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
import sys
import math
import bisect
stdin = sys.stdin
mod = 10**9 + 7

ns = lambda: stdin.readline().rstrip()
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
sa = lambda h: [list(map(int, stdin.readline().split())) for i in range(h)]

a, b = na()
if b % a == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a,b = map(int,input().split())
print(a+b if b%a == 0 else b-a)

Solution (Python):
a, b = map(int, input().split())

print(a + b if b%a == 0 else b - a)

Solution (Python):
a, b = list(map(int, input().split()))
if (b % a == 0):
    print(a + b)
else:
    print(b - a)

Solution (Python):
a, b = list(map(int, input().split()))
if b % a == 0:
    print(a + b)
else:
    print(b - a)

Solution (Python):
a, b = map(int,input().split())

if b%a == 0:
   print(a+b)

else:
  print(b-a)

Solution (Python):
a,b = map(int,input().split())
if b%a == 0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
def main():
    A, B = list(map(int, input().split()))

    if B % A == 0:
        print(A + B)
    else:
        print(B - A)

main()

Solution (Python):
import sys
sys.setrecursionlimit(10**9)
INF=10**18
MOD=10**9+7
def input():
    return sys.stdin.readline().rstrip()

def main():
    A,B=map(int,input().split())
    if B%A==0:
        print(A+B)
    else:
        print(B-A)

if __name__ == '__main__':
    main()

Solution (Python):
A,B=map(int,input().split())
if B%A==0:
  print(A+B)
else:
  print(B-A)

Solution (Python):
a,b = map(lambda x: int(x), input().split())

if b%a == 0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
import sys
sys.setrecursionlimit(10**9)
INF=10**18
MOD=10**9+7
def input():
    return sys.stdin.readline().rstrip()

def main():
    A,B=map(int,input().split())
    if B%A==0:
        print(A+B)
    else:
        print(B-A)

if __name__ == '__main__':
    main()

Solution (Python):
A, B = map(int, input().split())

if B % A == 0:
    print(A + B)
else:
    print(B - A)

Solution (Python):
A, B = map(int, input().split())
if B % A == 0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
A,B=map(int,input().split())
if B%A==0:
  print(A+B)
else:
  print(B-A)

Solution (Python):
A, B = map(int, input().split())

if B % A == 0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
a, b = map(int, input().split())

if (b % a == 0):
   print(a + b)
else:
   print(b - a)

Solution (Python):
a,b = map(int,input().split())
print(a+b if b%a == 0 else b-a)

Solution (Python):
a, b = map(int, input().split())

if b % a == 0:
    print(a + b)
else:
    print(b - a)

Solution (Python):
a,b=map(int, input().split())
print(a+b if b%a==0 else b-a)

Solution (Python):
a,b = map(int,input().split())

if b % a == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
A, B = map(int, input().split())
if B % A == 0:
    print(A + B)
else:
    print(B - A)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:print(a+b)
else:print(b-a)

Solution (Python):
a,b=map(int,input().split())
print(a+b if b%a==0 else b-a)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
a, b=map(int,input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
A,B=map(int,input().split())
if B%A==0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
A, B = map(int, input().split())
print(A + B if B % A == 0 else B - A)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a, b = map(int, input().split())

print(a+b) if b%a == 0 else print(b-a)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
a,b=map(int,input().split())

if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
A, B = map(int, input().split())
print(B - A if B % A else B + A)

Solution (Python):
A,B=map(int,input().split())
print(A+B if B%A==0 else B-A)

Solution (Python):
a,b = map(int,input().split())
if b%a==0:print(a+b)
else:print(b-a)

Solution (Python):
a, b= map(int, input().split())

if b%a == 0:
    print(a+b)
else:
    print(b - a)

Solution (Python):
A,B=map(int,input().split())

if B%A==0:
  print(A+B)
else:
  print(B-A)

Solution (Python):
a,b = map(int,input().split())
if b % a == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    a,b=INTM()
    if b%a==0:
        print(a+b)
    else:
        print(b-a)
if __name__ == '__main__':
    do()

Solution (Python):
a,b = map(int, input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
import bisect
import cmath
import heapq
import itertools
import math
import operator
import os
import re
import string
import sys
from collections import Counter, deque, defaultdict
from copy import deepcopy
from decimal import Decimal
from fractions import gcd
from functools import lru_cache, reduce
from operator import itemgetter, mul, add, xor

import numpy as np

if os.getenv("LOCAL"):
    sys.stdin = open("_in.txt", "r")

sys.setrecursionlimit(10 ** 9)
INF = float("inf")
IINF = 10 ** 18
MOD = 10 ** 9 + 7


A, B = list(map(int, sys.stdin.buffer.readline().split()))

if B % A == 0:
    print(A + B)
else:
    print( B - A)

Solution (Python):
A, B = map(int, input().split())
if B%A == 0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
N = list(map(int,input().split()))
if(N[1]%N[0]==0):
	print(N[0]+N[1])
else:
	print(N[1]-N[0])

Solution (Python):
a,b = map(int,input().split())

if b%a == 0:
    ans = a+b
else:
    ans = b-a

print(ans)

Solution (Python):
a, b = map(int, input().split())
if b % a == 0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
def solve():
    A, B = map(int, input().split())
    if B % A == 0:
        print(A + B)
    else:
        print(B - A)


if __name__ == '__main__':
    solve()

Solution (Python):
a, b  = map(int, input().split())

if b % a == 0:
    print(a + b)
else :
    print(b - a)

Solution (Python):
a,b = map(int, input().split())
if b % a == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a, b = map(int, input().split())
print(a+b if b%a == 0 else b-a)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
A,B=map(int,input().split())
if B%A==0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
a,b=map(int,input().split())
if(int(b%a)==0):
    print(a+b)
else:
    print(b-a)

Solution (Python):
A, B = map(int, input().split())
if B % A == 0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
  print(b+a)
else:
  print(b-a)

Solution (Python):
import sys
input = sys.stdin.readline

def print_ans(A, B):
    """Test Case
    >>> print_ans(4, 12)
    16
    >>> print_ans(8, 20)
    12
    >>> print_ans(1, 1)
    2
    """
    if B % A == 0:
        print(A + B)
    else:
        print(B-A)

if __name__ == '__main__':
    A, B = map(int, input().rstrip().split())
    print_ans(A, B)

Solution (Python):
A, B = map(int, input().split())

if B % A == 0:
    print(A + B)
else:
    print(B - A)

Solution (Python):
a, b = map(int, input().split())

print(b+a if b%a == 0 else b-a)

Solution (Python):
a,b = map(int, input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
A,B = map(int,input().split())
if B%A==0:
  print(A+B)
else:
  print(B-A)

Solution (Python):
a,b = map(int,input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):

A, B = map(int, input().split())

if B % A == 0:
    print(A + B)
else:
    print(B - A)

Solution (Python):
A, B = map( int, input().split() )
if B % A == 0 : 
  print( A + B )
else : 
  print( B - A )

Solution (Python):
a, b = map(int, input().split())
if b % a == 0:
    print(a + b)
else:
    print(b-a)

Solution (Python):
A, B = list(map(int, input().split()))
if (B / A) - int(B / A) == 0 :
	print(A + B)
else :
	print(B - A)

Solution (Python):
A,B = list(map(int,input().split()))

if B%A == 0:
  print(A+B)
else:
  print(B-A)

Solution (Python):
a, b = map(int, input().split())

if b % a == 0:
	print(a + b)
else:
	print(b - a)

Solution (Python):
a,b = map(int, input().split())
print(a+b if b%a == 0 else b-a)

Solution (Python):
a, b = map(int, input().split())

if b%a == 0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
A, B = map(int, input().split())

if (B / A).is_integer():
  print(B + A)
else:
  print(B - A)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
a, b = map(int, input().split())
if b%a == 0:
    print(abs(a+b))
else:
    print(abs(a-b))

Solution (Python):
a,b=map(int,input().split())
if b % a == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
def p_a():
    a, b = map(int, input().split())
    print(a + b if b % a == 0 else b - a)
    
p_a()

Solution (Python):
(a, b) = map(int, input().split())
if b % a == 0:
    print(a + b)
else:
    print(b - a)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a, b = map(int,input().split())
if b % a == 0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
a, b = map(int, input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a,b = map(int, input().split())
print(b-a if b%a else a+b)

Solution (Python):
A,B=map(int,input().split())
print(A+B if B%A==0 else B-A)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
a,b = map(int,input().split())
if b%a:
  print(b-a)
else:
  print(b+a)

Solution (Python):
a, b = map(int, input().split())
if b % a == 0:
    print(a + b)
else:
    print(b - a)

Solution (Python):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

import numpy as np

A, B = [int(x) for x in readline().rstrip().split()]
if B % A == 0:
    print(A + B)
else:
    print(B - A)

Solution (Python):
a,b=map(int,input().split())
print(a+b if b%a==0 else b-a)

Solution (Python):
a,b = map(int, input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
a,b=map(int,input().split());print([b-a,a+b][b%a==0])

Solution (Python):
A,B=map(int,input().split())
if B%A==0:
  print(A+B)
else:
  print(B-A)

Solution (Python):
a, b = map(int, input().split())
print(b-a if b % a else a+b)

Solution (Python):
A, B = map(int, input().split())
if B % A == 0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
A,B=map(int, input().split())  

if B%A==0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
A,B = map(int,input().split())
print(A+B if B%A == 0 else B-A)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a, b = map(int, input().split())

if b % a == 0:
    print(a + b)
else:
    print(b - a)

Solution (Python):
A, B = map(int, input().split(" "))

if B % A == 0:
    print(A + B)
else:
    print(B - A)

Solution (Python):

import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

a, b = map(int, input().split())
print(a+b if b % a == 0 else b-a)

Solution (Python):
a,b=map(int,input().split())
print(a+b if b%a==0 else b-a)

Solution (Python):
a, b = map(int, input().split())

if b%a == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
A,B=tuple(map(int,input().split()))
if B%A==0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
A,B = map(int,input().split())
if B%A == 0:
  print(A+B)
else:
  print(B-A)

Solution (Python):
A,B = map(int, input().split())

if B%A == 0:
  print(A+B)
else:
  print(B-A)

Solution (Python):

import math





A, B = map(int, input().split())

if B%A == 0 :
  print (A+B)
else :
  print (B-A)

Solution (Python):
a, b = map(int, input().split())

print(a + b if b % a == 0 else b - a)

Solution (Python):
A,B=map(int,input().split())
if B%A==0:
  print(A+B)
else:
  print(B-A)

Solution (Python):
import os, sys, re, math

A,B = list(map(int,input().split(' ')))

if B % A == 0:
    print(str(B+A))
else:
    print(str(B-A))

Solution (Python):
a, b = list(map(int, input().split()))
print(a + b if b % a == 0 else b - a)

Solution (Python):
A, B = map(int, input().split())
print(A + B if B % A == 0 else B - A)

Solution (Python):
import os, sys, re, math

(A, B) = [int(n) for n in input().split()]

if B % A == 0:
    print (A + B)
else:
    print (B - A)

Solution (Python):
a, b = map(int, input().split())
print(a + b if b % a == 0 else b - a)

Solution (Python):
a, b = list(map(int, input().split(' ')))
if b % a == 0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
A, B = list(map(int, input().split()))
if B % A == 0:
    print(A + B)
else:
    print(B - A)

Solution (Python):
a, b = map(int, input().split())
print(b + a) if b % a == 0 else print(b - a)

Solution (Python):
A,B=map(int,input().split(' '))
if B%A==0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
A,B=map(int,input().split(' '))
if B%A==0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
A,B=map(int,input().split())
print( A+B if B%A==0 else B-A )

Solution (Python):
a,b = map(int,input().split())
if b % a == 0:
  print(a + b)
else:
  print(b - a)

Solution (Python):
a,b=map(int,input().split())
if(b%a==0):
  print(a+b)
else:
  print(b-a)

Solution (Python):
A, B = map(int, input().split())
if B % A ==0:
  print(A + B)
else:
  print(B - A)

Solution (Python):
a,b = map(int,input().split())
if b % a == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a,b = map(int,input().split())
 
if b % a == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a = list(map(int, input().split()))

if a[1]%a[0] == 0:
  print(a[0]+a[1])
else:
  print(a[1] - a[0])

Solution (Python):
a,b=map(int,input().split())
if(b%a==0):
  print(a+b)
else:
  print(b-a)

Solution (Python):
a,b = map(int,input().split())

if b % a == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a,b=map(int,input().split())
print(a+b if b%a ==0 else b-a)

Solution (Python):
a, b = map(int, input().split())

if a != 0 and b%a == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a, b=map(int, input().split())
if b%a==0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
A,B = (int(i) for i in input().split())

if B % A == 0:
    ans = A + B
else:
    ans = B - A
    
print(ans)

Solution (Python):
a, b = map(int, input().split())
if b % a == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a,b=map(int,input().split());print(b-a if b%a else b+a)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
a,b= map(int,input().split())

for i in range(21):
    if a*i == b:
        print(a+b)
        exit()
print(b-a)

Solution (Python):
A,B=map(int,input().split())
if B%A==0:
  print(A+B)
else:
  print(B-A)

Solution (Python):
a, b = map(int, input().split(' '))
if b % a == 0:
  print(a + b)
else:
  print(b - a)

Solution (Python):
a,b = map(int,input().split())

if (b%a==0):
    print (a+b)
else:
    print (b-a)

Solution (Python):

A, B = map(int, input().split())
if B % A == 0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
a, b = map(int, input().split())
if b % a == 0 :
    print(a + b)
else :
    print(b - a)

Solution (Python):
a,b =map(int,input().split())
if int(b/a) == b/a:
    print(a+b)
else:
    print(b-a)

Solution (Python):
data = list(map(int,input().split()))

if data[1]%data[0] == 0:
    print(sum(data))
else:
    print(data[1]-data[0])

Solution (Python):
def main():
    a,b = map(int, input().split())
    if b%a == 0:
        print(a+b)
    else:
        print(b-a)


if __name__ == '__main__':
    main()

Solution (Python):
a,b=map(int,input().split())
if b%a:
  print(b-a)
else:
  print(a+b)

Solution (Python):
A, B = map(int, input().split())

if B % A == 0:
    print(A + B)
else:
    print(B - A)

Solution (Python):
A, B = map(int, input().split())
if B / A == B // A:
  print(A + B)
else:
  print(B - A)

Solution (Python):
a,b = map(int,input().split())

if b // a == b / a:
    print(a+b)
else:
    print(b-a)

Solution (Python):
A , B = map(int , input().split())

if B % A == 0:
    print(A+B)
else:
    print(B-A)

Solution (Python):

import sys










def main():
    a, b = (int(x) for x in sys.stdin.readline().split())
    print(a + b if b % a == 0 else b - a)



if __name__ == "__main__":
    main()

Solution (Python):
import sys
m,b=map(int,sys.stdin.readline().split())
if b%m==0:
    print(m+b)
else:
    print(b-m)

Solution (Python):
a,b = map(int,input().split())

if b%a == 0:
	print(a+b)
else:
	print(b-a)

Solution (Python):
a,b=map(int, input().split())
if b%a == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a,b=map(int,input().split())
if (b%a) == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a,b = map(int, input().split())

if b%a==0:
  ret = a+b
else:
  ret=b-a

print(ret)

Solution (Python):
a,b=map(int,input().split())
if (b%a)==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a, b = map(int, input().split())

if b%a == 0:
    print(b+a)
else:
    print(b-a)

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()

def main():
    a,b=map(int,input().split())
    if b%a:
        print(b-a)
    else:
        print(a+b)

main()

Solution (Python):
a,b = map(int, input().split())
print(a+b if b%a==0 else b-a)

Solution (Python):
a, b = map(int,input().split())
print(a + b if b%a==0 else b -a)

Solution (Python):
A, B = map(int, input().split())
if B % A == 0:
  print(A + B)
else:
  print(B - A)

Solution (Python):

a, b = [int(s) for s in input().split()]
print(a + b if b % a == 0 else b - a)

Solution (Python):
a,b = map(int, input().split())
if b%a:
    print(b-a)
else:
    print(a+b)

Solution (Python):
a, b = [int(i) for i in input().split()]
print(a + b if b % a == 0 else b - a)

Solution (Python):
a, b = map(int, input().split())
if b%a:
  print(b-a)
else:
  print(a+b)

Solution (Python):
a, b = map(int, input().split());

if b % a == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
A, B = map(int, input().split())
if B%A==0:
  print(A+B)
else:
  print(B-A)

Solution (Python):
A,B = map(int,input().split())
if B % A == 0:
  print(A + B)
else:
  print(B - A)

Solution (Python):
a, b =map(int, input().split())
if b % a == 0:
	print(a+b)
else:
	print(b-a)

Solution (Python):
a,b = map(int,input().split())
print(a+b if b%a==0 else b-a)

Solution (Python):
a,b= map(int,input().split())
if b%a ==0:
         print(a+b)
else:
         print(b-a)

Solution (Python):
a, b = map(int, input().split())
if b%a == 0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
from sys import stdin

a,b = [int(x) for x in stdin.readline().rstrip().split()]

if b%a == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a,b = map(int,input().split())

if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a,b=map(int,input().split())
print(a+b if b%a==0 else b-a)

Solution (Python):
a,b=map(int,input().split())
if(b%a==0):
  print(a+b)
else:
  print(b-a)

Solution (Python):
a, b = map(int, input().split())

if b % a == 0:
    print(a + b)
else:
    print(b - a)

Solution (Python):
a, b = map(int, input().split())
if b%a == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
A, B = map(int, input().split())

if B % A == 0 :
    print(A + B)
else :
    print(B - A)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a,b = map(int,input().split())
if b%a==0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
A,B = map(int,input().split())
ans = 0
if B % A == 0:
    ans = A+B
    print(ans)
else:
    ans = B-A
    print(ans)

Solution (Python):
A, B = map(int, input().split())

if B % A == 0:
    print(A + B)
else:
    print(B - A)

Solution (Python):
a, b = map(int, input().split())




if b%a == 0:
	print(a+b)
else:
	print(b-a)

Solution (Python):
A, B = map(int, input().split())
print(A + B if B % A == 0 else B - A)

Solution (Python):
a,b = map(int, input().split())
print(b-a if b%a else a+b)

Solution (Python):
a,b=map(int, input().split())
if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
A, B = map(int, input().split())

if B % A == 0:
    print(A + B)
else:
    print(B - A)

Solution (Python):
a,b=map(int,input().split());print(a+b-2*a*(b%a>0))

Solution (Python):
A, B = map(int, input().split())
if B % A == 0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
A,B = [int(x) for x in input().split()]

if B%A ==0:
    ans=A+B
else :
    ans=B-A
print(ans)

Solution (Python):
A, B = [int(x) for x in input().split()]
print(A+B if (B%A == 0) else B-A)

Solution (Python):
A, B = map(int, input().split())

if B % A == 0:
  print(A+B)
else:
  print(B-A)

Solution (Python):
A,B=map(int,input().split())
a=0
if B%A==0:
    a=A+B
else:
    a=B-A
print(a)

Solution (Python):
a,b=map(int,input().split())

if b % a == 0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
A,B=map(int,input().split())
if B%A==0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
A,B=map(int,input().split())
print(A+B if B%A==0 else B-A)

Solution (Python):
from sys import stdin, exit

input = stdin.readline
lmi = lambda: list(map(int, input().split()))
mi = lambda: map(int, input().split())
si = lambda: input().strip('\n')
ssi = lambda: input().strip('\n').split()

a, b = mi()
if b / a % 1 == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
a, b = map(int, input().split())
if b % a == 0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
A, B = map(int, input().split())

if B % A == 0:
  print(A + B)
else:
  print(B-A)

Solution (Python):

def main():
    A, B = map(int, input().split())
    flg = B % A
    print(B - A if flg else A + B)


if __name__ == "__main__":
    main()

Solution (Python):
n,k=map(int,input().split())
print(n+k if k%n ==0 else k-n)

Solution (Python):
from sys import stdin
 
A,B = map(int,stdin.readline().strip().split())

ans = 0
if B%A==0:
    ans = A + B
else:
    ans = B - A

print(ans)

Solution (Python):
A,B=map(int,input().split())
print(A+B if B%A==0 else B-A)

Solution (Python):
def main():
    A,B =  map(int, input().split())
    if(B%A==0):
        print(A+B)
    else:
        print(B-A)

if __name__ == "__main__":
    main()

Solution (Python):
A,B=map(int,input().split())
if B%A==0:
  print(A+B)
else:
  print(B-A)

Solution (Python):
a,b = list(map(int,input().strip().split()))
if b % a == 0:
    print(a + b)
else:
    print(b - a)

Solution (Python):
a,b=map(int,input().split())
print(a+b if b%a==0 else b-a)

Solution (Python):
a, b = map(int,input().split())

if b % a == 0 :
    print(a + b)
else :
    print(b - a)

Solution (Python):
A,B = map(int,input().split())
if B % A == 0:
  print(A+B)
else:
  print(B-A)

Solution (Python):
A, B = map(int, input().split())
print(B+A if B%A == 0 else B-A)

Solution (Python):
A, B = map(int, input().split())
if B%A==0:
    print(A+B)
else:
    print(B-A)

Solution (Python):
a,b = map(int,input().split())
if b % a == 0:
    print(a + b)
elif b % a != 0:
    print(b - a)

Solution (Python):
A , B = map(int,input().split())
x = B / A
if x.is_integer():
    print(A + B)
else:
    print(B - A)

Solution (Python):
a,b = map(int,input().split())
if b%a == 0:
  print(a+b)
else:
  print(b-a)

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    a, b = list(map(int, input().rstrip('\n').split()))
    print(a + b if b % a == 0 else b - a)


if __name__ == '__main__':
    slove()

Solution (Python):
a,b=map(int,input().split())

if b%a==0:
    print(a+b)
else:
    print(b-a)

Solution (Python):
A, B = map(int, input().split())
print("{}".format(A + B if B % A == 0 else B - A))

Solution (Python):
a, b = map(int, input().split())
if b % a == 0:
    print(a + b)
else:
    print(b - a)

Solution (Python):

A, B = map(int, open(0).read().split())
print(A+B if B%A==0 else B-A)