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==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,k = map(int, input().split())


if k%n==0:
    print(n+k)
else:
    print(k-n)

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 == 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,raw_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().strip().split())

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

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

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


def main():
    print(solve())


if __name__ == '__main__':
    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())
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: print(a+b)
else: print(b-a)

Solution (Python):
if __name__ == "__main__":
    A, B = tuple(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 sys
stdin = sys.stdin
 
sys.setrecursionlimit(10**5) 
 
def li(): return map(int, stdin.readline().split())
def li_(): return map(lambda x: int(x)-1, stdin.readline().split())
def lf(): return map(float, stdin.readline().split())
def ls(): return stdin.readline().split()
def ns(): return stdin.readline().rstrip()
def lc(): return list(ns())
def ni(): return int(stdin.readline())
def nf(): return float(stdin.readline())

a,b = li()

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 = map(int, input().split())
    if b % a == 0:
        print(a + b)
    else:
        print(b - a)


if __name__ == "__main__":
    main()

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, raw_input().strip().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())
print(a+b if b%a==0 else b-a)

Solution (Python):
a,b=map(int,input().split())
if b%a==0:
  print(int(a+b))
else:
  print(int(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:
    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 numpy as np

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==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, raw_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(a+b if b%a==0 else b-a)

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

Solution (Python):
N,M = map(int,input().split())

if M % N == 0 :
    print(N+M)
else :
    print(M-N)

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
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)