A,B = input().split() for i in range(A,B): if i % 3==0: print(i)