import math



def 			__SCREAMING_SNAKE_CASE						(      )							->      None:







  """simple docstring"""





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

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

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



def 			__SCREAMING_SNAKE_CASE						(      __UpperCamelCase					: int				,  __UpperCamelCase					: str			)							->      str:







  """simple docstring"""





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



def 			__SCREAMING_SNAKE_CASE						(      __UpperCamelCase					: int				,  __UpperCamelCase					: str			)							->      str:







  """simple docstring"""





  SCREAMING_SNAKE_CASE__    							=   math.ceil(len(__UpperCamelCase			) / key			)
  SCREAMING_SNAKE_CASE__    							=   key
  SCREAMING_SNAKE_CASE__    							=   (num_cols * num_rows) - len(__UpperCamelCase			)
  SCREAMING_SNAKE_CASE__    							=   [""""""] * num_cols
  SCREAMING_SNAKE_CASE__    							=   0
  SCREAMING_SNAKE_CASE__    							=   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)
    ):
      SCREAMING_SNAKE_CASE__    							=   0
      row += 1

  return "".join(__UpperCamelCase			)


if __name__ == "__main__":
   import doctest

   doctest.testmod()
   main()

def 			__SCREAMING_SNAKE_CASE						(      __UpperCamelCase					: int			)							->      int:







  """simple docstring"""





  SCREAMING_SNAKE_CASE__    							=   [1]

  SCREAMING_SNAKE_CASE__							,  SCREAMING_SNAKE_CASE__							,  SCREAMING_SNAKE_CASE__    							=   0, 0, 0
  SCREAMING_SNAKE_CASE__    							=   ugly_nums[ia] * 2
  SCREAMING_SNAKE_CASE__    							=   ugly_nums[ia] * 3
  SCREAMING_SNAKE_CASE__    							=   ugly_nums[ia] * 5

  for _ in range(1				,  __UpperCamelCase			):
    SCREAMING_SNAKE_CASE__    							=   min(__UpperCamelCase				,  __UpperCamelCase				,  __UpperCamelCase			)
    ugly_nums.append(__UpperCamelCase			)
    if next_num == next_a:
      ia += 1
      SCREAMING_SNAKE_CASE__    							=   ugly_nums[ia] * 2
    if next_num == next_a:
      ia += 1
      SCREAMING_SNAKE_CASE__    							=   ugly_nums[ia] * 3
    if next_num == next_a:
      ia += 1
      SCREAMING_SNAKE_CASE__    							=   ugly_nums[ia] * 5
  return ugly_nums[-1]


if __name__ == "__main__":
   from doctest import testmod

   testmod(verbose=True)
   print(F"""{ugly_numbers(200) = }""")
