code: 
  
  
  
  
  
  
  """simple docstring"""
  import os
  import sys
  import time
  
  from . import transposition_cipher as trans_cipher
  
  
  def        A	(							)						->		None:
  
         """simple docstring"""
  
  
  
  
  
         __magic_name__										=						'Prehistoric Men.txt'
         __magic_name__										=						'Output.txt'
         __magic_name__										=						int(input('Enter key: '     )     )
         __magic_name__										=						input('Encrypt/Decrypt [e/d]: '     )
  
         if not os.path.exists(__snake_case     ):
                print(F"""File {input_file} does not exist. Quitting..."""     )
                sys.exit()
         if os.path.exists(__snake_case     ):
                print(F"""Overwrite {output_file}? [y/n]"""     )
                __magic_name__										=						input('> '     )
                if not response.lower().startswith('y'     ):
                       sys.exit()
  
         __magic_name__										=						time.time()
         if mode.lower().startswith('e'     ):
                with open(__snake_case     ) as f:
                       __magic_name__										=						f.read()
                __magic_name__										=						trans_cipher.encrypt_message(__snake_case   ,    __snake_case     )
         elif mode.lower().startswith('d'     ):
                with open(__snake_case     ) as f:
                       __magic_name__										=						f.read()
                __magic_name__										=						trans_cipher.decrypt_message(__snake_case   ,    __snake_case     )
  
         with open(__snake_case   ,    'w'     ) as output_obj:
                output_obj.write(__snake_case     )
  
         __magic_name__										=						round(time.time() - start_time   ,    2     )
         print(('Done (', total_time, 'seconds )')     )
  
  
  if __name__ == "__main__":
   main()
style_context: 
  
  
  
  
  
  
  """simple docstring"""
  from typing import TYPE_CHECKING
  
  from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available
  
  
  snake_case   :   str    		=		{"""configuration_sew_d""": ["""SEW_D_PRETRAINED_CONFIG_ARCHIVE_MAP""", """SEWDConfig"""]}
  
  try:
   if not is_torch_available():
    raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
   pass
  else:
   snake_case   :   Union[str, Any]    		=		[
       """SEW_D_PRETRAINED_MODEL_ARCHIVE_LIST""",
       """SEWDForCTC""",
       """SEWDForSequenceClassification""",
       """SEWDModel""",
       """SEWDPreTrainedModel""",
   ]
  
  if TYPE_CHECKING:
   from .configuration_sew_d import SEW_D_PRETRAINED_CONFIG_ARCHIVE_MAP, SEWDConfig
  
   try:
    if not is_torch_available():
     raise OptionalDependencyNotAvailable()
   except OptionalDependencyNotAvailable:
    pass
   else:
    from .modeling_sew_d import (
        SEW_D_PRETRAINED_MODEL_ARCHIVE_LIST,
        SEWDForCTC,
        SEWDForSequenceClassification,
        SEWDModel,
        SEWDPreTrainedModel,
    )
  
  
  else:
   import sys
  
   snake_case   :   Union[str, Any]    		=		_LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)