while True:
try:
m,n = map(int,input().split())
temp = m #用来做循环计数
flag = False #用来做标记
while temp < n:
g = temp%10
s = temp%100//10
b = temp//100
if temp == pow(g,3)+pow(s,3)+pow(b,3):#如果有水仙花数,输出,并且标记变化
print(temp,end = ' ')
flag = True
temp = temp + 1
if flag == False:#如果没有水仙花数输出no
print('no',end = '')
print('')
except:
break