还算比较敢单

while 1:
    try:
        m,n = map(int,input().split())
        flag = []
        for i in range(m,n+1):
            sum1=0
            add = map(lambda x:int(x)**3,str(i))
            sum1=sum(add)
            if sum1 == i:
                flag.append(i)
        if len(flag) !=0:
            for i in flag:
                print(i,end=(" "))
        else:
            print("no")
            
    except:
        break