#include <stdio.h>
#include <math.h>
int main() {
    int n,m,count=0;
    while(scanf("%d %d\n",&m,&n)!=EOF)
    {
        for(int j=m;j<=n;j++)
        {
          int g = j%10;
          int s = (j/10)%10;
          int b = j/100;
          int sum =pow(g,3)+pow(s,3)+pow(b,3);
          if(j==sum)
          {
            printf("%d ",j);
            count++;
          }
          
        }
        if(count==0)
          {
            printf("no\n");
          }
    }
    return 0;
}