for n in range (100,1000,1):
c = n%10
b = int(((n-c)%100)/10)
a = n - 10*b -c
if n == a*a*a + b*b*b + c*c*c:
print (n)
Zm9yIG4gaW4gcmFuZ2UgKDEwMCwxMDAwLDEpOgogICBjID0gbiUxMAogICBiID0gaW50KCgobi1jKSUxMDApLzEwKQogICBhID0gbiAtIDEwKmIgLWMKICAgaWYgbiA9PSBhKmEqYSArIGIqYipiICsgYypjKmM6CiAgICAgIHByaW50IChuKQ==