# -- coding: utf-8 

number1, number2 = int(input()), int(input())
if number2>number1:
    for i in range (number1, number2+1):
        print (i)
else:
    for i in range (number2, number1+1):
        print (i)