data = list(map(int,input().split()))

if data[1]%data[0] == 0:
    print(sum(data))
else:
    print(data[1]-data[0]) data = list(map(int,input().split())) data list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split if data[1]%data[0] == 0:
    print(sum(data))
else:
    print(data[1]-data[0]) data[1]%data[0] == 0 data[1]%data[0] data[1] data 1 data[0] data 0 0 print(sum(data)) print sum(data) sum data print(data[1]-data[0]) print data[1]-data[0] data[1] data 1 data[0] data 0 data = list(map(int,input().split())) list(map(int,input().split())) data
data = list(map(int,input().split()))

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