


'''simple docstring'''
import math





def 					a__       (					)    ->	None:
    UpperCAmelCase__			:		List[Any]													=				input('''Enter message: '''						)
    UpperCAmelCase__			:		Any													=				int(input(F"""Enter key [2-{len(__UpperCAmelCase						) - 1}]: """						)						)
    UpperCAmelCase__			:		Any													=				input('''Encryption/Decryption [e/d]: '''						)

    if mode.lower().startswith('''e'''						):
        UpperCAmelCase__			:		List[Any]													=				encrypt_message(__UpperCAmelCase  ,					__UpperCAmelCase						)
    elif mode.lower().startswith('''d'''						):
        UpperCAmelCase__			:		Dict													=				decrypt_message(__UpperCAmelCase  ,					__UpperCAmelCase						)

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





def 					a__       (					lowerCAmelCase__  ,					lowerCAmelCase__						)    ->	str:
    UpperCAmelCase__			:		Optional[int]													=				[''''''] * key
    for col in range(__UpperCAmelCase						):
        UpperCAmelCase__			:		Dict													=				col
        while pointer < len(__UpperCAmelCase						):
            cipher_text[col] += message[pointer]
            pointer += key
    return "".join(__UpperCAmelCase						)





def 					a__       (					lowerCAmelCase__  ,					lowerCAmelCase__						)    ->	str:
    UpperCAmelCase__			:		Dict													=				math.ceil(len(__UpperCAmelCase						) / key						)
    UpperCAmelCase__			:		str													=				key
    UpperCAmelCase__			:		Optional[Any]													=				(num_cols * num_rows) - len(__UpperCAmelCase						)
    UpperCAmelCase__			:		List[str]													=				[''''''] * num_cols
    UpperCAmelCase__			:		int													=				0
    UpperCAmelCase__			:		List[str]													=				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__			:		Union[str, Any]													=				0
            row += 1

    return "".join(__UpperCAmelCase						)


if __name__ == "__main__":
  import doctest

  doctest.testmod()
  main()

"""simple docstring"""






def SCREAMING_SNAKE_CASE__			(   __UpperCAmelCase=2_8_1_2_3 )  ->  Any:
   lowercase__:   Optional[Any]					=      [1] * (limit + 1)

   for i in range(2       ,    int(limit**0.5 ) + 1 ):
      sum_divs[i * i] += i
      for k in range(i + 1       ,    limit // i + 1 ):
         sum_divs[k * i] += k + i

   lowercase__:   Union[str, Any]					=      set()
   lowercase__:   Optional[Any]					=      0

   for n in range(1       ,    limit + 1 ):
      if sum_divs[n] > n:
         abundants.add(__UpperCAmelCase )

      if not any((n - a in abundants) for a in abundants ):
         res += n

   return res


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