start, stop = map(int, input().split()) i=start while True: while i<=stop: if i%10==3: i+=1 continue print(i, end=' ') i+=1 break #네번쨰 줄의 while자리에 if를 쓰면 안되는 이유는 뭘까