
import math






def 						__magic_name__ (    ):



     '''simple docstring'''




     UpperCamelCase__				=				input("""Enter message: """						)
     UpperCamelCase__				=				int(input(f"Enter key [2-{len(__a						) - 1}]: "						)						)
     UpperCamelCase__				=				input("""Encryption/Decryption [e/d]: """						)

     if mode.lower().startswith("""e"""						):
          UpperCamelCase__				=				encrypt_message(__a       ,		__a						)
     elif mode.lower().startswith("""d"""						):
          UpperCamelCase__				=				decrypt_message(__a       ,		__a						)

     # Append pipe symbol (vertical bar) to identify spaces at the end.
     print(f"Output:\n{text + '|'}"						)






def 						__magic_name__ (    __a			:       int       ,		__a			:       str						):



     '''simple docstring'''




     UpperCamelCase__				=				[""] * key
     for col in range(__a						):
          UpperCamelCase__				=				col
          while pointer < len(__a						):
               cipher_text[col] += message[pointer]
               pointer += key
     return "".join(__a						)






def 						__magic_name__ (    __a			:       int       ,		__a			:       str						):



     '''simple docstring'''




     UpperCamelCase__				=				math.ceil(len(__a						) / key						)
     UpperCamelCase__				=				key
     UpperCamelCase__				=				(num_cols * num_rows) - len(__a						)
     UpperCamelCase__				=				[""] * num_cols
     UpperCamelCase__				=				0
     UpperCamelCase__				=				0

     for symbol in message:
          plain_text[col] += symbol
          col += 1

          if (
              (col == num_cols)
              or (col == num_cols - 1)
              and (row >= num_rows - num_shaded_boxes)
          ):
               UpperCamelCase__				=				0
               row += 1

     return "".join(__a						)


if __name__ == "__main__":
    import doctest

    doctest.testmod()
    main()









"""simple docstring"""



def   __lowerCAmelCase						(						)	->						Union[str, Any]:


    """simple docstring"""





    snake_case    :      Dict      					=    []
    snake_case    :      List[Any]      					=    1

    while len(lowercase ) < 1e6:
        constant.append(str(lowercase ) )
        i += 1

    snake_case    :      Tuple      					=    "".join(lowercase )

    return (
        int(constant[0] )
        * int(constant[9] )
        * int(constant[99] )
        * int(constant[999] )
        * int(constant[9999] )
        * int(constant[9_9999] )
        * int(constant[99_9999] )
    )


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





