text: Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)] on win32
  Type "help", "copyright", "credits" or "license()" for more information.
  >>> 
  
  for i in range(1042000, 702648265):
      num=i
      result=0
      n=len(str(i))
      while(i!=0):
          digit=i%10
          result=result+digit**n
          i=i//10
      if num==result:
          print(num)