import sys
FROM = int(input('Podaj liczbę from:'))
to = int(input('Podaj liczbę to:'))

if FROM > to:
    for i in range(FROM, to):
        print(i)
else:
    for i in range(FROM, to, -1):
        print(i)
