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