# Given two integers A and B. Print all numbers from A to B inclusively, in increasing order, if A < B, or in decreasing order, if A ≥ B.

a = int(input())
b = int(input())

if a > b:
  for i in range(a, b-1, -1):
    print(i, end=' ')
elif a < b:
  for i in range(a, b+1, 1):
    print(i, end=' ')
else:
  print(a)