fork download
  1.  
  2. L=int(input())
  3. K=L
  4. J=0
  5. while(K>0):
  6. J=J+(K%10)**3
  7. K=K//10
  8. if(J==L):
  9. print('yes')
  10. else:
  11. print('no')
Success #stdin #stdout 0.02s 27712KB
stdin
153
stdout
yes