a, b = [int(x) for x in input().split()]
print([a + b, b - a][int(bool(b % a))]) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x a, b = [int(x) for x in input().split()] a [int(x) for x in input().split()] b print([a + b, b - a][int(bool(b % a))]) print [a + b, b - a][int(bool(b % a))] [a + b, b - a] a + b a b b - a b a int(bool(b % a)) int bool(b % a) bool b % a b a b = [int(x) for x in input().split()] [int(x) for x in input().split()] b a, b = [int(x) for x in input().split()] [int(x) for x in input().split()] a
a, b = [int(x) for x in input().split()]
print([a + b, b - a][int(bool(b % a))])