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