






import torch

from transformers import PreTrainedModel

from .custom_configuration import CustomConfig, NoSuperInitConfig






class 	lowercase_      (			UpperCamelCase_     ):






      '''simple docstring'''




      __snake_case  						=						CustomConfig







      def __init__(   self   :		Dict				,      __UpperCAmelCase   :		List[str]						)					->List[Any]:




       """simple docstring"""


       super().__init__(__UpperCamelCase						)
       a							=   torch.nn.Linear(config.hidden_size				,      config.hidden_size						)







      def    __lowerCAmelCase      (   self   :		Dict				,      __UpperCAmelCase   :		Dict						)					->Dict:




       """simple docstring"""


       return self.linear(__UpperCamelCase						)







      def    __lowerCAmelCase      (   self   :		int				,      __UpperCAmelCase   :		Optional[Any]						)					->Union[str, Any]:




       """simple docstring"""


       pass






class 	lowercase_      (			UpperCamelCase_     ):






      '''simple docstring'''




      __snake_case  						=						NoSuperInitConfig







      def __init__(   self   :		int				,      __UpperCAmelCase   :		Any						)					->Dict:




       """simple docstring"""


       super().__init__(__UpperCamelCase						)
       a							=   torch.nn.Linear(config.attribute				,      config.attribute						)







      def    __lowerCAmelCase      (   self   :		str				,      __UpperCAmelCase   :		Optional[int]						)					->Union[str, Any]:




       """simple docstring"""


       return self.linear(__UpperCamelCase						)







      def    __lowerCAmelCase      (   self   :		Optional[int]				,      __UpperCAmelCase   :		Optional[Any]						)					->Dict:




       """simple docstring"""


       pass










def 		_a					(   a				:int				)							->    int:
 if not isinstance(a			,							a				):
  raise TypeError('''recursive_lucas_number accepts only integer arguments.'''				)
 if n_th_number == 0:
  return 2
 if n_th_number == 1:
  return 1

 return recursive_lucas_number(n_th_number - 1				) + recursive_lucas_number(
     n_th_number - 2				)
def 		_a					(   a				:int				)							->    int:
 if not isinstance(a			,							a				):
  raise TypeError('''dynamic_lucas_number accepts only integer arguments.'''				)
 a						,  a							=   2, 1
 for _ in range(a				):
  a						,  a							=   b, a + b
 return a


if __name__ == "__main__":
     from doctest import testmod

     testmod()
     UpperCAmelCase__            =	int(input("Enter the number of terms in lucas series:\n").strip())
     print("Using recursive function to calculate lucas series:")
     print(" ".join(str(recursive_lucas_number(i)) for i in range(n)))
     print("\nUsing dynamic function to calculate lucas series:")
     print(" ".join(str(dynamic_lucas_number(i)) for i in range(n)))


