import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[] nums = {6, 28, 496, 8128}; while (sc.hasNextInt()) { int a = sc.nextInt(); int b = sc.nextInt(); for (int num : nums) { if (num >= a && num <= b) { System.out.println(num); } } } } }