import java.util.*; public class Test{ public static void main(String[] args){ Scanner s = new Scanner(System.in); int a = s.nextInt(),b = s.nextInt(); for(int i=a;i<=b;i++){ if(i%3 == 0){ System.out.println(i); continue; } else{ String str = String.valueOf(i); for(int j=0;j