



"""simple docstring"""




class 	a__		:


   def __init__(				self   :				Union[str, Any]      )     ->							None:
         lowercase	:   Optional[Any]											= [0, 1]






   def 							lowercase					(				self   :				Dict,  lowerCAmelCase   :				int      )     ->							list:
         if (difference := index - (len(self.sequence      ) - 2)) >= 1:
               for _ in range(lowerCAmelCase      ):
                     self.sequence.append(self.sequence[-1] + self.sequence[-2]      )
         return self.sequence[:index]




def 	lowercase__  (      )  ->      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	:   Any											= Fibonacci()

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

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

            print(fibonacci.get(_UpperCAmelCase					)					)


if __name__ == "__main__":
     main()





"""simple docstring"""




def 	lowercase__  (      )  ->      Any:






      '''simple docstring'''


      lowercase	:   Dict											= 1

      while True:
            if (
                sorted(str(_UpperCAmelCase					)					)
                == sorted(str(2 * i					)					)
                == sorted(str(3 * i					)					)
                == sorted(str(4 * i					)					)
                == sorted(str(5 * i					)					)
                == sorted(str(6 * i					)					)
            ):
                  return i

            i += 1


if __name__ == "__main__":
     print(solution())
