import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(sc.hasNext()){ int m = sc.nextInt(); int n = sc.nextInt(); boolean flag = false; for(int i = m; i <= n; i++){ if(Math.pow(i/100,3)+Math.pow(i/10%10,3)+Math.pow(i%10,3) == i){ flag = true ; System.out.print(i+" "); } } if(!flag){ System.out.print("no"); } } } }