import math
A,B=map(int, input().split())
print (B+A-2*A*math.ceil(B%A/20)) import math math A,B=map(int, input().split()) A map(int, input().split()) map int input().split() ().split () input split B print (B+A-2*A*math.ceil(B%A/20)) print B+A-2*A*math.ceil(B%A/20) B+A B A 2*A*math.ceil(B%A/20) 2*A 2 A math.ceil(B%A/20) math.ceil math ceil B%A/20 B%A B A 20 A,B=map(int, input().split()) map(int, input().split()) A B=map(int, input().split()) map(int, input().split()) B
import math
A,B=map(int, input().split())
print (B+A-2*A*math.ceil(B%A/20))