import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int i=0, j=0; char num; for(i=0; i<=2000000000; i++) { if(A<=i && i<=B){ if(i%3==0){ System.out.println(i); }else{ String i_string=String.valueOf(i); while(j