def o(a, b):
if a%2 == 1:
print(a)
if a==b:
return
o(a+1,b)
a, b = map(int, input().split())
o(a, b)
def o(a, b):
if a>b:
return
o(a,b-1)
if b%2 == 1:
print(b)
a, b = map(int, input().split())
o(a, b)