


'''simple docstring'''







import os
import sys
import time

from . import transposition_cipher as trans_cipher







def _UpperCamelCase	(					)							->		None:


      '''simple docstring'''



      UpperCamelCase__  =    "Prehistoric Men.txt"
      UpperCamelCase__  =    "Output.txt"
      UpperCamelCase__  =    int(input("Enter key: "   )   )
      UpperCamelCase__  =    input("Encrypt/Decrypt [e/d]: "   )

      if not os.path.exists(__A   ):
            print(F'''File {input_file} does not exist. Quitting...'''   )
            sys.exit()
      if os.path.exists(__A   ):
            print(F'''Overwrite {output_file}? [y/n]'''   )
            UpperCamelCase__  =    input("> "   )
            if not response.lower().startswith("y"   ):
                  sys.exit()

      UpperCamelCase__  =    time.time()
      if mode.lower().startswith("e"   ):
            with open(__A   ) as f:
                  UpperCamelCase__  =    f.read()
            UpperCamelCase__  =    trans_cipher.encrypt_message(__A				,      __A   )
      elif mode.lower().startswith("d"   ):
            with open(__A   ) as f:
                  UpperCamelCase__  =    f.read()
            UpperCamelCase__  =    trans_cipher.decrypt_message(__A				,      __A   )

      with open(__A				,      "w"   ) as output_obj:
            output_obj.write(__A   )

      UpperCamelCase__  =    round(time.time() - start_time				,      2   )
      print(("Done (", total_time, "seconds )")   )


if __name__ == "__main__":
  main()









'''simple docstring'''







from itertools import permutations







def _UpperCamelCase	(					)							->		Optional[int]:


      '''simple docstring'''



      UpperCamelCase__  =    list(map("".join				,      permutations("0123456789"   )   )   )
      return result[999999]


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





