




'''simple docstring'''






def 		a_( lowerCamelCase   ,				lowerCamelCase      )				->Any:






       '''simple docstring'''




       if n == 0:
              return 1

       elif n % 2 == 1:
              return binary_exponentiation(lowerCamelCase   ,				n - 1      ) * a

       else:
              lowercase  :		List[Any]						=      binary_exponentiation(lowerCamelCase   ,				n / 2      )
              return b * b


if __name__ == "__main__":
      try:
            lowercase	:      Union[str, Any]				=       int(input('''Enter Base : ''').strip())
            lowercase	:      Union[str, Any]				=       int(input('''Enter Power : ''').strip())
      except ValueError:
            print('''Invalid literal for integer''')

      lowercase	:      Any				=       binary_exponentiation(BASE, POWER)
      print(f'{BASE}^({POWER}) : {RESULT}')










'''simple docstring'''






class   SCREAMING_SNAKE_CASE_		:



 def __init__(  self ):






        '''simple docstring'''




        lowercase  :		List[str]						=      [0, 1]





 def    SCREAMING_SNAKE_CASE(  self   ,		A ):






        '''simple docstring'''




        if (difference := index - (len(self.sequence ) - 2)) >= 1:
               for _ in range(A ):
                      self.sequence.append(self.sequence[-1] + self.sequence[-2] )
        return self.sequence[:index]






def 		a_( )				->None:






       '''simple docstring'''




       print(
           '''Fibonacci Series Using Dynamic Programming\n'''   ,				'''Enter the index of the Fibonacci number you want to calculate '''   ,				'''in the prompt below. (To exit enter exit or Ctrl-C)\n'''   ,				sep=''''''   ,				)
       lowercase  :		Optional[int]						=      Fibonacci()

       while True:
              lowercase  :		str						=      input('''>> '''      )
              if prompt in {"exit", "quit"}:
                     break

              try:
                     lowercase  :		int						=      int(lowerCamelCase      )
              except ValueError:
                     print('''Enter a number or \'exit\''''      )
                     continue

              print(fibonacci.get(lowerCamelCase      )      )


if __name__ == "__main__":
      main()




