





"""simple docstring"""





import random






class    _lowerCAmelCase  :
       """simple docstring"""




       @staticmethod
       def 	snake_case		(       __UpperCAmelCase ):



         '''simple docstring'''

         lowerCAmelCase__     :Any											=				[ord(__UpperCAmelCase ) for i in text]
         lowerCAmelCase__     :List[Any]											=				[]
         lowerCAmelCase__     :Optional[Any]											=				[]
         for i in plain:
           lowerCAmelCase__     :List[Any]											=				random.randint(1       ,					3_0_0 )
           lowerCAmelCase__     :List[Any]											=				(i + k) * k
           cipher.append(__UpperCAmelCase )
           key.append(__UpperCAmelCase )
         return cipher, key






       @staticmethod
       def 	snake_case		(       __UpperCAmelCase       ,					__UpperCAmelCase ):



         '''simple docstring'''

         lowerCAmelCase__     :Tuple											=				[]
         for i in range(len(__UpperCAmelCase ) ):
           lowerCAmelCase__     :Optional[Any]											=				int((cipher[i] - (key[i]) ** 2) / key[i] )
           plain.append(chr(__UpperCAmelCase ) )
         return "".join(__UpperCAmelCase )


if __name__ == "__main__":
  __A							,				__A											=						Onepad().encrypt("""Hello""")
  print(c, k)
  print(Onepad().decrypt(c, k))







"""simple docstring"""





def 					__A  (_SCREAMING_SNAKE_CASE     )   ->str:





  """simple docstring"""


  lowerCAmelCase__     :List[Any]											=				int(_SCREAMING_SNAKE_CASE     )
  if decimal in (0, 1):  # Exit cases for the recursion
    return str(_SCREAMING_SNAKE_CASE     )
  lowerCAmelCase__				,							lowerCAmelCase__     :int											=				divmod(_SCREAMING_SNAKE_CASE	,  2     )
  return binary_recursive(_SCREAMING_SNAKE_CASE     ) + str(_SCREAMING_SNAKE_CASE     )
def 					__A  (_SCREAMING_SNAKE_CASE     )   ->str:





  """simple docstring"""


  lowerCAmelCase__     :str											=				str(_SCREAMING_SNAKE_CASE     ).strip()
  if not number:
    raise ValueError('No input value was provided'     )
  lowerCAmelCase__     :Dict											=				'-' if number.startswith('-'     ) else ''
  lowerCAmelCase__     :int											=				number.lstrip('-'     )
  if not number.isnumeric():
    raise ValueError('Input value is not an integer'     )
  return F"{negative}0b{binary_recursive(int(_SCREAMING_SNAKE_CASE     )     )}"


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

  testmod()
