a = int(input()) #start b = int(input()) #end for i in range(a, b + 1): if i % 7 == 0: print(i)