from random import randint m = sorted([int(input('a ')),int(input('b '))]) print(*[randint(m[0],m[1] + 1) for i in range(5)])