


'''simple docstring'''






from __future__ import annotations






def 						_A					(lowerCAmelCase__	:Dict		) ->	bool:




     '''simple docstring'''



     _a         =				42
     _a         =				list(lowerCAmelCase__		)
     _a         =				_vector[:-1], int(_vector[-1]		)
     _a         =				[int(lowerCAmelCase__		) for digit in __vector]

     vector.reverse()
     for i, digit in enumerate(lowerCAmelCase__		):
          if i & 1 == 0:
               _a         =				digit * 2
               if doubled > 9:
                    doubled -= 9
               check_digit += doubled
          else:
               check_digit += digit

     return check_digit % 10 == 0


if __name__ == "__main__":
 import doctest

 doctest.testmod()
 assert is_luhn("79927398713")
 assert not is_luhn("79927398714")




def 						_snake_case		(     SCREAMING_SNAKE_CASE		,				SCREAMING_SNAKE_CASE		,				SCREAMING_SNAKE_CASE					)							->   Optional[int]:

     """simple docstring"""







     if power < 0:
          return -1
     base %= mod
     _lowerCAmelCase :       Tuple	   =     1

     while power > 0:
          if power & 1:
               _lowerCAmelCase :       Optional[Any]	   =     (result * base) % mod
          _lowerCAmelCase :       int	   =     power >> 1
          _lowerCAmelCase :       Optional[int]	   =     (base * base) % mod

     return result







def 						_snake_case		(     )							->   Optional[int]:

     """simple docstring"""







     print(modular_exponential(3		,				200		,				13					)					)


if __name__ == "__main__":
  import doctest

  doctest.testmod()

  main()






