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