






snake_case__      :	int       	=      """ABCDEFGHIJKLMNOPQRSTUVWXYZ"""






def     _snake_case    (	):
   UpperCamelCase_									=     input('Enter message: ')
   UpperCamelCase_									=     input('Enter key [alphanumeric]: ')
   UpperCamelCase_									=     input('Encrypt/Decrypt [e/d]: ')

   if mode.lower().startswith('e'):
      UpperCamelCase_									=     'encrypt'
      UpperCamelCase_									=     encrypt_message(__lowercase    ,      __lowercase)
   elif mode.lower().startswith('d'):
      UpperCamelCase_									=     'decrypt'
      UpperCamelCase_									=     decrypt_message(__lowercase    ,      __lowercase)

   print(f"""\n{mode.title()}ed message:""")
   print(__lowercase)






def     _snake_case    (	__lowercase    ,      __lowercase):
   return translate_message(__lowercase    ,      __lowercase    ,      'encrypt')






def     _snake_case    (	__lowercase    ,      __lowercase):
   return translate_message(__lowercase    ,      __lowercase    ,      'decrypt')






def     _snake_case    (	__lowercase    ,      __lowercase    ,      __lowercase):
   UpperCamelCase_									=     []
   UpperCamelCase_									=     0
   UpperCamelCase_									=     key.upper()

   for symbol in message:
      UpperCamelCase_									=     LETTERS.find(symbol.upper())
      if num != -1:
         if mode == "encrypt":
            num += LETTERS.find(key[key_index])
         elif mode == "decrypt":
            num -= LETTERS.find(key[key_index])

         num %= len(__lowercase)

         if symbol.isupper():
            translated.append(LETTERS[num])
         elif symbol.islower():
            translated.append(LETTERS[num].lower())

         key_index += 1
         if key_index == len(__lowercase):
            UpperCamelCase_									=     0
      else:
         translated.append(__lowercase)
   return "".join(__lowercase)


if __name__ == "__main__":
 main()













def     _snake_case    (__lowercase    ,      __lowercase    ,      __lowercase):
   return not any(
       neighbour == 1 and colored_vertices[i] == color
       for i, neighbour in enumerate(__lowercase))






def     _snake_case    (__lowercase    ,      __lowercase    ,      __lowercase    ,      __lowercase):

   # Base Case
   if index == len(__lowercase):
      return True

   # Recursive Step
   for i in range(__lowercase):
      if valid_coloring(graph[index]    ,      __lowercase    ,      __lowercase):
         # Color current vertex
         UpperCamelCase_									=     i
         # Validate coloring
         if util_color(__lowercase    ,      __lowercase    ,      __lowercase    ,      index + 1):
            return True
         # Backtrack
         UpperCamelCase_									=     -1
   return False






def     _snake_case    (__lowercase    ,      __lowercase):
   UpperCamelCase_									=     [-1] * len(__lowercase)

   if util_color(__lowercase    ,      __lowercase    ,      __lowercase    ,      0):
      return colored_vertices

   return []





